from django.conf.urls import include import debug_toolbar import patternatlas from patternatlas.publishers import PatternPublisher sitemaps = { 'atlas': patternatlas.PatternSitemap, } d.urlpatterns += d.patterns('', d.url(r'^debug_toolbar/', include(debug_toolbar.urls)), d.url(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}), d.url(r'^api/', include(PatternPublisher.patterns())), d.url(r'^', include(patternatlas.urlconf))) if __name__ == "__main__": d.do("syncdb", "--noinput") from django.contrib.auth.models import User admin_user, created = User.objects.get_or_create(username="******", is_active=True, is_staff=True, is_superuser=True) admin_user.set_password('admin') admin_user.save() d.main()
TEMPLATE_CONTEXT_PROCESSORS=[ "django.core.context_processors.media", "django.core.context_processors.static", "django.core.context_processors.request", "django.contrib.auth.context_processors.auth", 'cms.context_processors.media', 'sekizai.context_processors.sekizai', ], CMS_TEMPLATES=[ ('cms_template.html', 'Template'), ], FIXTURE_DIRS=[HERE], STATIC_URL='/s/', MEDIA_URL='/m/', admin="^", ) from django.conf.urls import include d.add_view(r'^honeypot/', include('admin_honeypot.urls')) from django.template.loader import add_to_builtins add_to_builtins('django_pdb.templatetags.pdb') if __name__ == "__main__": if len(sys.argv) == 1: d.do("syncdb", "--noinput") d.do('loaddata', 'initial_data.auth.json') d.do('loaddata', 'initial_data.cms.json') d.do("runserver", "0.0.0.0:8080") else: d.main()