Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoReverseMatch at /admin/blog/post/ #84

Closed
garcianavalon opened this issue Jul 10, 2016 · 3 comments
Closed

NoReverseMatch at /admin/blog/post/ #84

garcianavalon opened this issue Jul 10, 2016 · 3 comments

Comments

@garcianavalon
Copy link
Contributor

garcianavalon commented Jul 10, 2016

Hi,

I have installed the last version of Pinax and I'm getting an error in the admin page. If I try to access /admin/blog/post/ I get aNoReverseMatch u'pinax_blog' is not a registered namespace. I only get this error in the /post/ sections, the rest are working fine.

I have the following code:
At settings.py

INSTALLED_APPS = (
    ...
    'pinax.blog',
...
)

at urls.py
url(r"^blog/", include("pinax.blog.urls")),
I have also done a python manage.py migrate.

Any idea of whats going on? The rest of the sections work perfectly.
Cheers

captura de pantalla 2016-07-10 a las 18 00 07
captura de pantalla 2016-07-10 a las 18 00 27

@paltman
Copy link
Member

paltman commented Jul 10, 2016

You need to add the pinax_blog namespace to the urls definition:

Like so:
https://github.com/pinax/pinax-starter-projects/blob/blog/project_name/urls.py#L9

@paltman paltman closed this as completed Jul 10, 2016
@garcianavalon
Copy link
Contributor Author

Thanks @paltman!
The documentation is outdated, as the namespace part is missing in the installation instructions. I can make you a pull request with the fix

@jtauber
Copy link
Member

jtauber commented Jul 10, 2016

@garcianavalon that'd be great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants