ahlev django uikit
install from this repository
clone
go to directory ahlev_django_uikit
cd ahlev_django_uikit
create installer package
make package
install package
cd into project directory
cd ../my_project_dir
install ahlev_django_uikit from the project directory
pip install ../ahlev_django_uikit/dist/ahlev_django_uikit-0.0.1.tar.gz
install from pypi
project configuration
add ahlev_django_uikit to settings.py
INSTALLED_APPS = [
'ahlev_django_uikit', # add this line
'widget_tweaks', # abd this line
...
]
make sure these lines exist in settings.py
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static")
]
STATIC_URL = '/static/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads')
MEDIA_URL = '/medias/'
make sure these lines exists in urls.py
# replace tmp with application name
from django.conf import settings
from django.conf.urls.static import static
from django.urls import include, path
urlpatterns = [
path('admin/', admin.site.urls),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)