Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammadali-Akbarov committed Jul 20, 2024
1 parent c37a638 commit cb32f92
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 45 deletions.
7 changes: 7 additions & 0 deletions configs/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@
}
}

# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': BASE_DIR / 'db.sqlite3',
# }
# }

LOGFILE_PATH = "./"
LOG_LEVEL = env.str('LOG_LEVEL', 'ERROR')

Expand Down
21 changes: 15 additions & 6 deletions configs/urls.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
from django.contrib import admin
from django.urls import path, include

from django.urls import path, include, re_path
from django.conf import settings
from django.conf.urls.static import static
from django.urls import path, re_path
from django.views.static import serve
from django.views.generic import RedirectView

urlpatterns = [
path('admin/', admin.site.urls),
path('', include('myshop.urls')),
path('users/', include('users.urls')),
# thirt-part-apps

# third-party apps
path('__debug__/', include('debug_toolbar.urls')),

# Proxy paths
path('hltuz/', RedirectView.as_view(url='https://hlt-asal.tilda.ws/hltuz', permanent=True), name='hltuz_proxy'),
path('hlt5/', RedirectView.as_view(url='https://hlt-asal.tilda.ws/hlt5', permanent=True), name='hlt5_proxy'),
path('zextranewid5grija/', RedirectView.as_view(url='https://hlt-asal.tilda.ws/zextranewid5grija', permanent=True), name='zextranewid5grija_proxy'),
path('zextranewid5artrit/', RedirectView.as_view(url='https://hlt-asal.tilda.ws/zextranewid5artrit', permanent=True), name='zextranewid5artrit_proxy'),
path('zextranewid5suyak/', RedirectView.as_view(url='https://hlt-asal.tilda.ws/zextranewid5suyak', permanent=True), name='zextranewid5suyak_proxy'),
path('zextraalsafia/', RedirectView.as_view(url='https://hlt-asal.tilda.ws/zextraalsafia', permanent=True), name='zextraalsafia_proxy'),
path('drbeezee/', RedirectView.as_view(url='https://hlt-asal.tilda.ws/drbeezee', permanent=True), name='drbeezee_proxy'),
path('tibomeduzbekistan/', RedirectView.as_view(url='https://hlt-asal.tilda.ws/tibomeduzbekistan', permanent=True), name='tibomeduzbekistan_proxy'),
]

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += [re_path(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT,}),]
urlpatterns += [re_path(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT,}),]
41 changes: 2 additions & 39 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,57 +1,20 @@
asgiref==3.5.0
async-timeout==4.0.2
attrs==21.4.0
autopep8==1.6.0
backports.zoneinfo==0.2.1
bcrypt==3.2.2
boto3==1.21.34
botocore==1.24.34
certifi==2022.6.15
cffi==1.15.1
charset-normalizer==2.0.12
cryptography==37.0.4
Deprecated==1.2.13
distro==1.7.0
dj-database-url==0.5.0
dj-static==0.0.6
Django==3.2.12
django-debug-toolbar==3.2.4
django-heroku==0.3.1
django-redis==5.2.0
django-storages==1.12.3
djangorestframework==3.13.1
docker==5.0.3
docker-compose==1.29.2
dockerpty==0.4.1
docopt==0.6.2
environs==9.5.0
gunicorn==20.1.0
idna==3.3
jmespath==1.0.0
jsonschema==3.2.0
marshmallow==3.15.0
packaging==21.3
paramiko==2.11.0
Pillow==9.1.0
pillow==9.1.0
pip-chill==1.0.3
psycopg2==2.9.3
pycodestyle==2.8.0
pycparser==2.21
PyNaCl==1.5.0
pyparsing==3.0.7
pyrsistent==0.18.1
python-dateutil==2.8.2
python-dotenv==0.20.0
pytz==2022.1
PyYAML==5.4.1
redis==4.3.4
requests==2.28.0
s3transfer==0.5.2
six==1.16.0
sqlparse==0.4.2
static3==0.7.0
texttable==1.6.4
toml==0.10.2
urllib3==1.26.9
websocket-client==0.59.0
whitenoise==6.0.0
wrapt==1.14.1

0 comments on commit cb32f92

Please sign in to comment.