-
Notifications
You must be signed in to change notification settings - Fork 1
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
[#37] - Added simple home page, templates folder and modify settings and... #39
Conversation
TEMPLATE_DIRS = (os.path.join(BASE_DIR, 'accounts/templates'), ) | ||
TEMPLATE_DIRS = (os.path.join(BASE_DIR, 'accounts/templates'), | ||
os.path.join(BASE_DIR, 'templates') | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a co z places/templates ?
ps. skoro to trzeba dodać to jakim cudem to wrześniej działało ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nie trzeba tego dodawać, wystarczy dodać aplikację do INSTALLED_APPS i samo będzie znajdywało szablony w folderze "templates" w aplikacji.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To jest zewnętrzny katalog, dodany poza aplikację, dlatego trzeba to dodać inaczej nie przeszukuje tego katalogu (nie ma aplikacji) to jest luźny katalog.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No ale mówimy tutaj przecież o "accounts/templates", a accounts to jest przecież aplikacja.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aaaa, ok, no tak to jest niepotrzebne, ale to już było dodane wcześniej. Można to usunąć i zostawić sam wpis z templates. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dzięki :)
👍 |
|
||
urlpatterns = patterns('', | ||
url(r'^admin/', include(admin.site.urls)), | ||
url(r'^$', TemplateView.as_view(template_name='index.html'), name="home"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raz apostrofy, raz cudzysłowy - zdecyduj się :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zdecydowałam się... chyba mamy tu więcej komentarzy niż linii kodu ;)
[#37] - Added simple home page, templates folder and modify settings and...
... main urls