Django ignores changes made to URLS.py file - Amazon AWS

I just created an EC2 instance and created a Django app and am using Amazon servers. Usually, when I make changes to my Djnago application, I update it by doing

git add .
git commit -m "change"
git aws.push

      

I recently made changes to my urls.py file and did the three steps above. Then I went to my site and for some reason when I visit the url it gives a 404 not found error and says

Using the URLconf defined in myapp.urls, Django tried these URL patterns, in this order:

    1. ^$

The current URL, register/, didn't match any of these.

      

However, my URLS.py does indeed have

url(r'^$', mainPageView),
url(r'^login/$', login),
url(r'^logout/$', logoutView),
url(r'^register/$', registerView),

      

and many others. I even tried to do

eb update

      

to make sure this updates the server, but it doesn't. Why is Django giving me a 404 error, stating that the url does not match any of my urls in my urls.py file, even if it does?

+3
django django-urls amazon-web-services amazon-ec2 http-status-code-404


source to share


No one has answered this question yet

See similar questions:

1
Doesn't detect urls.py file in django?
0
how to restart django server without shutting down database and server instance - AWS

or similar:

3
Django EOL in urls.py
1
Django urls.py. It does not work properly
1
setting up django urls between projects and apps
1
Django, urls.py, include doesn't seem to work
1
why is my urls.py not working with Django
0
The urls.py in my application cannot be recognized by my main urls.py
0
Django doesn't match urls
0
Django only matches urls with app / app id
0
In Django, how do you reference the urls of your urls.py project?
-1
django - Page not found (404)



All Articles
Loading...
X
Show
Funny
Dev
Pics