Skip to content

youzarsiph/django-short-links

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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_URL, 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.

About

A Django app that allows users to shorten long URLs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published