BaseApp URL Shortening
Project description
BaseApp URL Shortening
Reusable app to enable url shortening.
How to install:
Install in your environment:
pip install baseapp-url-shortening
And run provision or manually pip install -r requirements/base.ext
If you want to develop, install using this other guide.
How to use
Add baseapp_url_shortening
to your project's INSTALLED_APPS
Add the following to your settings file. URL_SHORTENING_PREFIX
can be any string
URL_SHORTENING_PREFIX = "c"
Add the following to your apps/urls.py file
urlpatterns = [
re_path(r"", include("baseapp_url_shortening.urls")),
]
Writing test cases in your project
There is a ShortUrlFactory
which helps you write other factories:
import factory
from baseapp_url_shortening.tests.factories import ShortUrlFactory
How to develop
Clone the project inside your project's backend dir:
git clone git@github.com:silverlogic/baseapp-backend.git
And manually install the package:
pip install -e baseapp-backend/baseapp-url-shortening
The -e
flag will make it like any change you make in the cloned repo files will effect into the project.
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
File details
Details for the file baseapp-url-shortening-0.1.31.tar.gz
.
File metadata
- Download URL: baseapp-url-shortening-0.1.31.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6178e4905c820c81f29f866225a31f82aaf9ef0e54356b81e43400a5d0534241 |
|
MD5 | 62542ae03dc537f1881f3e3f9ccea27b |
|
BLAKE2b-256 | 1281bf86cb7bf9f0b8e695fa135519f09fe323db7bd8b76ed1f5ca747a434121 |