-
Notifications
You must be signed in to change notification settings - Fork 236
/
Copy pathh_django_urls.py
65 lines (40 loc) · 1.47 KB
/
h_django_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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- encoding: utf-8 -*-
"""
Copyright (c) App-Generator.dev | AppSeed.us
"""
from .common import *
from .h_files import *
from .h_util import *
from .h_django_common import *
def urls_load( ):
# Use project prefix
FILE_DJ_URLS = os.path.join( DIR_ROOT, FILE_DJ_URLS_s )
return cfg_load( FILE_DJ_URLS )
def urls_imports( ):
# Use project prefix
FILE_DJ_URLS = os.path.join( DIR_ROOT, FILE_DJ_URLS_s )
return cfg_imports( FILE_DJ_URLS )
def urls_sections( ):
# Use project prefix
FILE_DJ_URLS = os.path.join( DIR_ROOT, FILE_DJ_URLS_s )
return cfg_sections( FILE_DJ_URLS )
def urls_save( content ):
# Use project prefix
FILE_DJ_URLS = os.path.join( DIR_ROOT, FILE_DJ_URLS_s )
return cfg_save( FILE_DJ_URLS, content )
def urls_format( ):
# Use project prefix
FILE_DJ_URLS = os.path.join( DIR_ROOT, FILE_DJ_URLS_s )
return cfg_format( FILE_DJ_URLS )
def urls_section_get( ):
# Use project prefix
FILE_DJ_URLS = os.path.join( DIR_ROOT, FILE_DJ_URLS_s )
return cfg_section_get( FILE_DJ_URLS, 'urlpatterns' )
def urls_list( ):
# Use project prefix
FILE_DJ_URLS = os.path.join( DIR_ROOT, FILE_DJ_URLS_s )
return cfg_section_list( FILE_DJ_URLS, 'urlpatterns' )
def urls_add_rule( aNewValue ):
# Use project prefix
FILE_DJ_URLS = os.path.join( DIR_ROOT, FILE_DJ_URLS_s )
return cfg_section_add_item( FILE_DJ_URLS, 'urlpatterns', aNewValue, True )