I found the problem.
When the mysite\urls.py file is created, it has this line already in it.
from django.conf.urls import url
The tutorial asks you to add the following lines to the file.
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^pol
I added polls to settings.py :
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'polls.apps.PollsConfig',
]
Then I tried the migration:
C:
Jorr,
No, I did not modify the settings.py file, because the tutorial
specifically states:
Note
Ignore the warning about unapplied database migrations for now; we’ll deal
with the database shortly.
Here is a link to the tutorial:
https://docs.djangoproject.com/en/1.9/intro/tutorial01/
Igor,
Yes, the server was started. Here are the contents of the command window
including after trying to go to the website.
C:\Data\Django_Code\FirstApp\mysite>python manage.py runserver
Performing system checks...
System check identified no issues (0 silenced).
You have unapplied migrations
Found: /polls/
[28/Feb/2016 21:06:30] "GET /polls/ HTTP/1.1" 404 1921
Not Found: /favicon.ico
[28/Feb/2016 21:06:31] "GET /favicon.ico HTTP/1.1" 404 1936
On Saturday, February 27, 2016 at 1:50:39 PM UTC-6, Mike Kipling wrote:
>
> I am working through the Django tutorial *
= [
url(r'^polls/', include('polls.urls')),
url(r'^admin/', admin.site.urls),
]
Mike
On Saturday, February 27, 2016 at 1:50:39 PM UTC-6, Mike Kipling wrote:
>
> I am working through the Django tutorial *Writing your first Django app,
> part 1.*
> I am
On Saturday, February 27, 2016 at 2:06:42 PM UTC-6, James Schneider wrote:
>
>
> On Feb 27, 2016 11:49 AM, "Mike Kipling" >
> wrote:
> >
> > I am working through the Django tutorial Writing your first Django app,
> part 1.
> > I am using Windows 10
I am working through the Django tutorial *Writing your first Django app,
part 1.*
I am using Windows 10, python 3.5.1 and Django 1.9.2 .
In the *Write your first view* section:
after writing the polls/views.py and polls/urls.py files,
and modifying the manage/urls.py file,
and st
8 matches
Mail list logo