django-admin startproject mysite
mysite/ manage.py mysite/ __init__.py settings.py urls.py wsgi.py
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2389c312-9fa1-4314-8266-cce998cea3cb%40googlegroups.com.
Hi Nathan,Appreciate your response, it wasnt there,I would create it again and check and thanks a lot for responding
On Mon, Jun 18, 2018 at 11:43 PM, itsnate_b <nathan...@gmail.com> wrote:
I'm assuming you already did this?
django-admin startproject mysite
If so, then you should have a mysite folder, inside of another mysite folder. Inside of there you should have views.py, models.py. You may need to create the urls.py file, if it's not already there.
should look like what is shown in the tutorial...mysite/ manage.py mysite/ __init__.py settings.py urls.py wsgi.py
On Monday, June 18, 2018 at 8:26:42 AM UTC-4, Django starter wrote:I am trying to create polls project as mentiioned in the django website, i am a beginer of django, as mentioned in the https://docs.djangoproject.com/en/dev/intro/tutorial01/i dont see mysite/urls.py, do i need to create mysite and urls.py, could you please let me know.Thanks
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b41e988b-e70b-413e-aed6-8ce0d51bc906%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b41e988b-e70b-413e-aed6-8ce0d51bc906%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/07e44626-4114-4821-bc56-d71771166e10%40googlegroups.com.
The next step is to point the root URLconf at the polls.urls
module. In mysite/urls.py
, add an import for django.urls.include
and insert an include()
in the urlpatterns
list, so you have:
from django.contrib import admin from django.urls import include, path urlpatterns = [
path('polls/', include('polls.urls')),
path('admin/', admin.site.urls), ]