This repository has been archived by the owner on May 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
48 lines (35 loc) · 1.88 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, include, url
from django.views.generic.simple import direct_to_template
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Media and Static - comment out for production config! -------------
url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
url(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.STATIC_ROOT}),
# Search urls ---------------------------------------------------------
# Home url -----------------------------------------------------------
(r'^home/$', include('foodie.apps.home.urls')),
url(r'^mobile/info/(?P<phone_number>[^/]+)/$', 'foodie.apps.mobile.views.Show_Profile', name='profile'),
(r'^mobile/$', include('foodie.apps.mobile.urls')),
# App urls -----------------------------------------------------------
#(r'^api/$', include('foodie.apps.api.urls')),
url(r'^api/message/', 'foodie.apps.api.views.sms_messages', name="sms_messages"),
url(r'^api/send/$', 'foodie.apps.api.views.sms_send', name='sms_send'),
url(r'^api/incoming/$', 'foodie.apps.api.views.incoming', name='incoming'),
url(r'^$', 'foodie.apps.home.views.home'),
# App urls -----------------------------------------------------------
# url(r'^api/(?P<pat_id>\S+)$', 'foodie.apps.api.urls',
# name='home'),
(r'^nutrition/', include('foodie.apps.nutrition.urls')),
# Static Pages
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
)