Skip to content

pull request #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions .idea/UNOv2.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions core/migrations/0005_auto_20231022_1706.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 2.2 on 2023-10-22 22:06

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('core', '0004_auto_20190630_1408'),
]

operations = [
migrations.AlterField(
model_name='item',
name='category',
field=models.CharField(choices=[('S', 'Shirt'), ('SW', 'Hoodie'), ('OW', 'Cap')], max_length=2),
),
]
4 changes: 2 additions & 2 deletions core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

CATEGORY_CHOICES = (
('S', 'Shirt'),
('SW', 'Sport wear'),
('OW', 'Outwear')
('SW', 'Hoodie'),
('OW', 'Cap')
)

LABEL_CHOICES = (
Expand Down
Binary file modified db.sqlite3
Binary file not shown.
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys

if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djecommerce.settings.development')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'unoshop.settings.development')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand Down
Binary file modified requirements.txt
Binary file not shown.
4 changes: 2 additions & 2 deletions templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
<a class="nav-link" href="#">Shirts</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Sport wears</a>
<a class="nav-link" href="#">Hoodies</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Outwears</a>
<a class="nav-link" href="#">Caps</a>
</li>

</ul>
Expand Down
2 changes: 1 addition & 1 deletion templates/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<!-- Brand -->
<a class="navbar-brand waves-effect" href="/">
<strong class="blue-text">DJe-commerce</strong>
<strong class="blue-text">Underpaid-N-Overworked</strong>
</a>

<!-- Collapse -->
Expand Down
13 changes: 7 additions & 6 deletions templates/product.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@

<h4 class="my-4 h4">Additional information</h4>

<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus suscipit modi sapiente illo soluta odit
voluptates,
quibusdam officia. Neque quibusdam quas a quis porro? Molestias illo neque eum in laborum.</p>
<p>Looking for a unique touch for your "Underpaid-N-Overworked" T-shirt or Hoodie?
We offer customization services for bulk orders or special events.
Contact our customer service team to inquire about personalized designs,
logos, or prints for your business, organization, or special occasion.</p>

</div>
<!--Grid column-->
Expand All @@ -95,23 +96,23 @@ <h4 class="my-4 h4">Additional information</h4>
<!--Grid column-->
<div class="col-lg-4 col-md-12 mb-4">

<img src="https://mdbootstrap.com/img/Photos/Horizontal/E-commerce/Products/11.jpg" class="img-fluid" alt="">
<img src="https://unomail.sharepoint.com/:i:/r/sites/UNO-ISQA3900OverworkedUnderpaid/Shared%20Documents/General/Shirt%20Mockups/Back.png?csf=1&web=1&e=GPLp8u" class="img-fluid" alt="">

</div>
<!--Grid column-->

<!--Grid column-->
<div class="col-lg-4 col-md-6 mb-4">

<img src="https://mdbootstrap.com/img/Photos/Horizontal/E-commerce/Products/12.jpg" class="img-fluid" alt="">
<img src="https://unomail.sharepoint.com/:i:/r/sites/UNO-ISQA3900OverworkedUnderpaid/Shared%20Documents/General/Shirt%20Mockups/Black_Hoodie.png?csf=1&web=1&e=whQOYD" class="img-fluid" alt="">

</div>
<!--Grid column-->

<!--Grid column-->
<div class="col-lg-4 col-md-6 mb-4">

<img src="https://mdbootstrap.com/img/Photos/Horizontal/E-commerce/Products/13.jpg" class="img-fluid" alt="">
<img src="https://unomail.sharepoint.com/:i:/r/sites/UNO-ISQA3900OverworkedUnderpaid/Shared%20Documents/General/Shirt%20Mockups/Red_Tshirt.png?csf=1&web=1&e=1rLwys" class="img-fluid" alt="">

</div>
<!--Grid column-->
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from .base import *
from .settings import *
import os

DEBUG = True
ALLOWED_HOSTS = ['127.0.0.1']
ALLOWED_HOSTS = ['127.0.0.1', '.pythonanywhere.com']

INSTALLED_APPS += [
'debug_toolbar'
Expand Down Expand Up @@ -45,3 +46,9 @@ def show_toolbar(request):

STRIPE_PUBLIC_KEY = config('STRIPE_TEST_PUBLIC_KEY')
STRIPE_SECRET_KEY = config('STRIPE_TEST_SECRET_KEY')



MEDIA_URL = 'media/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .base import *
from .settings import *

DEBUG = config('DEBUG', cast=bool)
ALLOWED_HOSTS = ['ip-address', 'www.your-website.com']
Expand Down
4 changes: 2 additions & 2 deletions djecommerce/settings/base.py → unoshop/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'djecommerce.urls'
ROOT_URLCONF = 'unoshop.urls'

TEMPLATES = [
{
Expand All @@ -52,7 +52,7 @@
},
]

WSGI_APPLICATION = 'djecommerce.wsgi.application'
WSGI_APPLICATION = 'unoshop.wsgi.application'

LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion djecommerce/wsgi.py → unoshop/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djecommerce.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'unoshop.settings')

application = get_wsgi_application()