Advertisement
Alikus

Project structure

Jun 1st, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.87 KB | None | 0 0
  1. albert@tugushev:~$ tree project
  2. project
  3. ├── apps
  4. │   ├── __init__.py
  5. │   └── myapp
  6. │       ├── admin.py
  7. │       ├── __init__.py
  8. │       ├── models.py
  9. │       ├── tests.py
  10. │       ├── urls.py
  11. │       └── views.py
  12. ├── manage.py
  13. └── projectname
  14.     ├── __init__.py
  15.     ├── settings.py
  16.     ├── urls.py
  17.     └── wsgi.py
  18.  
  19. 3 directories, 12 files
  20.  
  21.  
  22.  
  23. albert@tugushev:~$ cat project/projectname/urls.py
  24. from django.conf.urls import patterns, include, url
  25.  
  26. from django.contrib import admin
  27. admin.autodiscover()
  28.  
  29. urlpatterns = patterns('',
  30.     # Examples:
  31.     # url(r'^$', 'projectname.views.home', name='home'),
  32.     # url(r'^blog/', include('blog.urls')),
  33.  
  34.     url(r'^admin/', include(admin.site.urls)),
  35.     url(r'', include('apps.myapp.urls')),
  36. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement