Created
October 20, 2018 20:50
-
-
Save yitendra/8d318e6e5cf10b58f944f7a8e8d92930 to your computer and use it in GitHub Desktop.
django
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib import admin | |
from django.conf.urls import url | |
from app import views | |
from django.conf import settings | |
from django.conf.urls.static import static | |
urlpatterns = [ | |
url('admin/', admin.site.urls), | |
url('^$',views.index,name='index') | |
] | |
if settings.DEBUG: | |
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) | |
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment