Commit d903ec8a authored by Rafal's avatar Rafal

Update photos

parent df23cbb1
...@@ -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:
......
...@@ -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:
......
...@@ -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:
......
...@@ -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 -->
......
...@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment