Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
KawowyDzienniczek
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rafal
KawowyDzienniczek
Commits
d903ec8a
Commit
d903ec8a
authored
Jul 06, 2016
by
Rafal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update photos
parent
df23cbb1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
17 deletions
+20
-17
init_places.py
...enniczek/App/loyaltyMe/management/commands/init_places.py
+6
-6
init_products.py
...niczek/App/loyaltyMe/management/commands/init_products.py
+4
-4
init_promotions.py
...czek/App/loyaltyMe/management/commands/init_promotions.py
+3
-3
index.html
KawowyDzienniczek/App/page/templates/main_page/index.html
+3
-0
init_userprofile.py
...enniczek/App/user/management/commands/init_userprofile.py
+4
-4
No files found.
KawowyDzienniczek/App/loyaltyMe/management/commands/init_places.py
View file @
d903ec8a
...
@@ -9,12 +9,12 @@ class Command(BaseCommand):
...
@@ -9,12 +9,12 @@ class Command(BaseCommand):
def
handle
(
self
,
*
args
,
**
options
):
def
handle
(
self
,
*
args
,
**
options
):
places
=
[
places
=
[
#['name', 'type', 'screen_img', 'logo_img', 'description', 'offer', 'promotions'],
#['name', 'type', 'screen_img', 'logo_img', 'description', 'offer', 'promotions'],
[
'Kocia Kawiarnia'
,
'Cafeteria'
,
'/static/
media/img/photo_1.jpg'
,
'/static/media
/img/photo_1.jpg'
,
'description'
,
'Oferta1'
,
'Promocja1'
],
[
'Kocia Kawiarnia'
,
'Cafeteria'
,
'/static/
img/photo_1.jpg'
,
'/static
/img/photo_1.jpg'
,
'description'
,
'Oferta1'
,
'Promocja1'
],
[
'Kafcia u Olczaka'
,
'Cafeteria'
,
'/static/
media/img/photo_1.jpg'
,
'/static/media
/img/photo_1.jpg'
,
'description'
,
'Oferta2'
,
'Promocja2'
],
[
'Kafcia u Olczaka'
,
'Cafeteria'
,
'/static/
img/photo_1.jpg'
,
'/static
/img/photo_1.jpg'
,
'description'
,
'Oferta2'
,
'Promocja2'
],
[
'Psia Kawiarnia'
,
'Cafeteria'
,
'/static/
media/img/photo_1.jpg'
,
'/static/media
/img/photo_1.jpg'
,
'description'
,
'Oferta1'
,
'Promocja1'
],
[
'Psia Kawiarnia'
,
'Cafeteria'
,
'/static/
img/photo_1.jpg'
,
'/static
/img/photo_1.jpg'
,
'description'
,
'Oferta1'
,
'Promocja1'
],
[
'Kafcia u Iwczaka'
,
'Cafeteria'
,
'/static/
media/img/photo_1.jpg'
,
'/static/media
/img/photo_1.jpg'
,
'description'
,
'Oferta2'
,
'Promocja2'
],
[
'Kafcia u Iwczaka'
,
'Cafeteria'
,
'/static/
img/photo_1.jpg'
,
'/static
/img/photo_1.jpg'
,
'description'
,
'Oferta2'
,
'Promocja2'
],
[
'Lemingowa Kawiarnia'
,
'Cafeteria'
,
'/static/
media/img/photo_1.jpg'
,
'/static/media
/img/photo_1.jpg'
,
'description'
,
'Oferta1'
,
'Promocja1'
],
[
'Lemingowa Kawiarnia'
,
'Cafeteria'
,
'/static/
img/photo_1.jpg'
,
'/static
/img/photo_1.jpg'
,
'description'
,
'Oferta1'
,
'Promocja1'
],
[
'Kafcia u Ewelinczaka'
,
'Cafeteria'
,
'/static/
media/img/photo_1.jpg'
,
'/static/media
/img/photo_1.jpg'
,
'description'
,
'Oferta2'
,
'Promocja2'
],
[
'Kafcia u Ewelinczaka'
,
'Cafeteria'
,
'/static/
img/photo_1.jpg'
,
'/static
/img/photo_1.jpg'
,
'description'
,
'Oferta2'
,
'Promocja2'
],
]
]
print
(
"Creating Places"
)
print
(
"Creating Places"
)
for
place
in
places
:
for
place
in
places
:
...
...
KawowyDzienniczek/App/loyaltyMe/management/commands/init_products.py
View file @
d903ec8a
...
@@ -9,10 +9,10 @@ class Command(BaseCommand):
...
@@ -9,10 +9,10 @@ class Command(BaseCommand):
def
handle
(
self
,
*
args
,
**
options
):
def
handle
(
self
,
*
args
,
**
options
):
products
=
[
products
=
[
#['name', 'description', 'price', 'img' ],
#['name', 'description', 'price', 'img' ],
[
'Kawa Latte'
,
'Z nutą czekolady'
,
'7 zł'
,
'/static/
media/
img/photo_1.jpg'
],
[
'Kawa Latte'
,
'Z nutą czekolady'
,
'7 zł'
,
'/static/img/photo_1.jpg'
],
[
'Herbata'
,
'Z nutą czekolady'
,
'4 zł'
,
'/static/
media/
img/photo_1.jpg'
],
[
'Herbata'
,
'Z nutą czekolady'
,
'4 zł'
,
'/static/img/photo_1.jpg'
],
[
'Ciasto'
,
'Z nutą czekolady'
,
'5 zł'
,
'/static/
media/
img/photo_1.jpg'
],
[
'Ciasto'
,
'Z nutą czekolady'
,
'5 zł'
,
'/static/img/photo_1.jpg'
],
[
'Espresso'
,
'Mała czarna'
,
'5 zł'
,
'/static/
media/
img/photo_1.jpg'
],
[
'Espresso'
,
'Mała czarna'
,
'5 zł'
,
'/static/img/photo_1.jpg'
],
]
]
print
(
"Creating Products"
)
print
(
"Creating Products"
)
for
product
in
products
:
for
product
in
products
:
...
...
KawowyDzienniczek/App/loyaltyMe/management/commands/init_promotions.py
View file @
d903ec8a
...
@@ -9,9 +9,9 @@ class Command(BaseCommand):
...
@@ -9,9 +9,9 @@ class Command(BaseCommand):
def
handle
(
self
,
*
args
,
**
options
):
def
handle
(
self
,
*
args
,
**
options
):
promotions
=
[
promotions
=
[
#[name, description, code, img, status]
#[name, description, code, img, status]
[
'10
%
'
,
'Zniżka 10
%
'
,
'5ac5'
,
'/static/
media/
img/photo_1.jpg'
,
'New'
],
[
'10
%
'
,
'Zniżka 10
%
'
,
'5ac5'
,
'/static/img/photo_1.jpg'
,
'New'
],
[
'20
%
'
,
'Zniżka 20
%
'
,
'5ac6'
,
'/static/
media/
img/photo_1.jpg'
,
'New'
],
[
'20
%
'
,
'Zniżka 20
%
'
,
'5ac6'
,
'/static/img/photo_1.jpg'
,
'New'
],
[
'50
%
'
,
'Zniżka 50
%
'
,
'5ac7'
,
'/static/
media/
img/photo_1.jpg'
,
'New'
],
[
'50
%
'
,
'Zniżka 50
%
'
,
'5ac7'
,
'/static/img/photo_1.jpg'
,
'New'
],
]
]
print
(
"Creating Promotions"
)
print
(
"Creating Promotions"
)
for
promotion
in
promotions
:
for
promotion
in
promotions
:
...
...
KawowyDzienniczek/App/page/templates/main_page/index.html
View file @
d903ec8a
...
@@ -64,6 +64,9 @@
...
@@ -64,6 +64,9 @@
<li>
<li>
<a
href=
"#"
>
O nas
</a>
<a
href=
"#"
>
O nas
</a>
</li>
</li>
<li>
<a
href=
"#"
>
Zaloguj
</a>
</li>
</ul>
</ul>
</div>
</div>
<!-- /.navbar-collapse -->
<!-- /.navbar-collapse -->
...
...
KawowyDzienniczek/App/user/management/commands/init_userprofile.py
View file @
d903ec8a
...
@@ -10,10 +10,10 @@ class Command(BaseCommand):
...
@@ -10,10 +10,10 @@ class Command(BaseCommand):
def
handle
(
self
,
*
args
,
**
options
):
def
handle
(
self
,
*
args
,
**
options
):
data
=
[
data
=
[
[
'admin'
,
'/static/
media/
img/users/photos/default_avatar.png'
,],
[
'admin'
,
'/static/img/users/photos/default_avatar.png'
,],
[
'Antek'
,
'/static/
media/
img/users/photos/antek.jpg'
,],
[
'Antek'
,
'/static/img/users/photos/antek.jpg'
,],
[
'Rafal'
,
'/static/
media/
img/users/photos/rafal.jpg'
],
[
'Rafal'
,
'/static/img/users/photos/rafal.jpg'
],
[
'Klaudia'
,
'/static/
media/
img/users/photos/klaudia.jpg'
],
[
'Klaudia'
,
'/static/img/users/photos/klaudia.jpg'
],
]
]
print
(
"Creating UsersProfile"
)
print
(
"Creating UsersProfile"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment