Skip to content
This repository has been archived by the owner on Oct 25, 2019. It is now read-only.

Django admin doesn't work #39

Open
mohammadhsn opened this issue Jun 6, 2018 · 2 comments
Open

Django admin doesn't work #39

mohammadhsn opened this issue Jun 6, 2018 · 2 comments

Comments

@mohammadhsn
Copy link
Contributor

Django admin interface doesn't launch in /admin.
I think the admin path has a conflict with notto's app URLs.

@renatoliveira
Copy link
Owner

Ah, I get it. Yes, could be a real issue. When I first thought about allowing user registration I started thinking about changing a little bit the URL format:

  • notto.io/u/<username> for users
  • notto.io/n/<note> for notes

This would allow us to freely use whatever comes after the site's domain, like /admin, /login and /logout, /about, and whatever else would be cool to have.

What do you think?

@mohammadhsn
Copy link
Contributor Author

I agree with you.
We have a problem in refactoring URLs also!
The URLs wrote in hard codes! It's to better to use the Django's utilities to call URLs,
e.g. django.shortcuts.reverse in views, url template tag in templates.
Now, if we want to refactor URLs structure as you suggest, we should change several parts of the code.

I suggest using Django's approach in URLs refactoring :)

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

No branches or pull requests

2 participants