Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit f477633

Browse files
author
Brad Miller
committed
check for dynamic pages
1 parent aeb0dee commit f477633

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

runestone/__main__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,13 @@ def serve(port,listen):
130130
sys.path.insert(0,os.getcwd())
131131
try:
132132
import pavement
133+
try:
134+
if pavement.dynamic_pages == True:
135+
click.echo("Error -- dynamic_pages is True, but this server does not support templates", err=True)
136+
click.echo("You should update pavement.py and rebuild")
137+
return
138+
except:
139+
click.echo("dynamic_pages is not defined")
133140
except:
134141
print("Error, you must be in your project root directory")
135142
return

0 commit comments

Comments
 (0)