URL shortener Django app
Project description
django-short-links
URL / Link shortener web app.
Getting Started
Install links
:
pip install django-short-links
Add links
to INSTALLED_APPS
. Make sure that django.contrib.auth
installed, then add a new setting LINKS_SITE_NAME
, in settings.py
:
# settings.py
INSTALLED_APPS = [
...
'links',
'django.contrib.auth',
...
]
# Your server's IP address without trailing slash
LINKS_SITE_URL = 'https://your.domain.com'
Include links
and django.contrib.auth.urls
, in project's urls.py
:
# urls.py
urlpatterns = [
...
path('l/', include('links.urls')),
path('accounts/', include('django.contrib.auth.urls')),
...
]
Run migrate
:
python manage.py migrate
Now, you can open your browser at https://your.domain.com/l/
.
I hope that you find this useful.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_short_links-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f74d95a3d46aa7b8f32cc523afac746c3f3629c5269c13bf60b9533c78e39257 |
|
MD5 | a03550346f314510f65ed08c7279db02 |
|
BLAKE2b-256 | 5db3f533b4ecf6d5bc3ed4eaa70736504b1ed71b30eefff8b5119769a16c3f5a |