Skip to content

Commit 31e20f4

Browse files
Adicionado robots.txt e .gitignore para ignorar os .pyc
1 parent e26a748 commit 31e20f4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

urls.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@
3535

3636
(r'^contato/$', 'views.contato'),
3737

38+
(r'^robots.txt$', 'django.views.static.serve',
39+
{ 'path' : "/robots.txt",
40+
'document_root': settings.MEDIA_ROOT,
41+
'show_indexes': False } ),
42+
43+
3844
(r'^media/(.*)$', 'django.views.static.serve',
3945
{'document_root': settings.MEDIA_ROOT}),
4046

urls.pyc

113 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)