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

Sugestão urls.py #1

Open
wants to merge 92 commits into
base: master
Choose a base branch
from
Open

Sugestão urls.py #1

wants to merge 92 commits into from

Conversation

MiguelLetra
Copy link
Contributor

from django.conf.urls import url, include
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^accounts/', include('accounts.urls')),
]
em vez disto, (penso que já não se use na versão mais recente do django) podiam ter deixado com o path:
from django.urls import path,include
urlpatterns=[
path('admin/',admin.site.urls),
path('account/',include('accounts.urls')),
]

https://docs.djangoproject.com/en/2.1/ref/urls/

Apenas uma sugestão. Se preferirem usar como está tudo bem.

inesamaro and others added 30 commits October 16, 2018 16:28
…the posts (needs to be replaced with an icon)
…e page to better suit overall look of the site
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

Successfully merging this pull request may close these issues.

8 participants