P
P
pvgdrk2014-10-13 21:44:50
Django
pvgdrk, 2014-10-13 21:44:50

How to fix 'The requested URL /accounts/login was not found on this server' error when using Django-registration for 1.6?

I downloaded a new version of django-registration, as advised here, which works with django 1.6:
https://github.com/macropin/django-registration#eg...
Installed, copied the registration folder to the project, made syncdb.

settings.py:
'INSTALLED_APPS = (..., 'registration',)
ACCOUNT_ACTIVATION_DAYS = 7'

Well, that is, before with the same settings (seemingly) in 1.5 everything worked.
When I follow the link 'http://localhost/accounts/login/'I get
'404 Not Found The requested URL /accounts/login/ was not found on this server'.

And this is not a message from the Zhdango debugger.
In the Apache error log (while going to the /localhost/ page (without /accounts/login/) works):
'localhost:443:0 server certificate does NOT include an ID which matches the server name'

Apache access log:
'::1 - - [13/Oct/2014:21:45:12 +0400] "GET /accounts/login/ HTTP/1.1" 404 213'

How to find a bug?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
P
pvgdrk, 2015-04-24
@pvgdrk

Everything turned out to be easier - I once changed the root of the site (I'm trying to remember how), but the old addresses were preserved in the view. that is, you need not /accounts/login/ , but projectName/accounts/login/

A
alternativshik, 2014-10-14
@alternativshik

And what about Apache? Do you use Apache for development? Open it with normal runserver and look at the error and the urls you have in the project...

A
Alexey Bukin, 2014-10-15
@abukin

Well, probably according to the manual: https://django-registration-redux.readthedocs.org/...
it is necessary to register routes in urls'py.

(r'^accounts/', include('registration.backends.default.urls')),

O
Optimus, 2016-11-11
Pyan @marrk2

You did everything right, set these DNS, add the domain to the hoster panel and that's it, wait from 8 to 72 hours, then see if the stub opens.

V
Viktor Taran, 2016-11-11
@shambler81

specify ns server of your host

A
Alceo, 2016-11-25
@Alceo

you can use free dns yandex servers together with pdd.yandex.ru mail, you can use built-in free servers for domains registered in p01, you can register a domain in p01 for 99 r through an affiliate program - panel.itcare.ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question