fork download
  1. # blog/apps.py
  2. from django.apps import AppConfig
  3. from django.utils.translation import ugettext_lazy as _
  4.  
  5. class BlogConfig(AppConfig):
  6. name = 'blog'
  7. verbose_name = _('Blog')
  8.  
  9.  
  10. # settings.py
  11. INSTALLED_APPS = [
  12. # My apps
  13. 'cms_project.apps.blog.apps.BlogConfig',
  14. ]
  15.  
  16.  
  17. # urls.py
  18. urlpatterns = [
  19. url(r'^blog/', include('blog.urls', namespace='blog')),
  20. ]
Runtime error #stdin #stdout #stderr 0.01s 9992KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 2, in <module>
ImportError: No module named 'django'