All Projects → ericls → djanurl

ericls / djanurl

Licence: other
Django URL shortener project

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to djanurl

gow
URL shortener for evlfctry.pro
Stars: ✭ 29 (+31.82%)
Mutual labels:  url-shortener
bitlyshortener
High-volume Bitly V4 URL shortener with in-memory cache
Stars: ✭ 20 (-9.09%)
Mutual labels:  url-shortener
shuri
Simple url shortener script
Stars: ✭ 15 (-31.82%)
Mutual labels:  url-shortener
outbound-go
URL shortener and Redirection As A Service
Stars: ✭ 21 (-4.55%)
Mutual labels:  url-shortener
onurl
URL Shortener created w/ Next.js, TypeScript, Mongoose
Stars: ✭ 48 (+118.18%)
Mutual labels:  url-shortener
Base62
PHP Base62 encoder and decoder for integers and big integers with Laravel 5 support.
Stars: ✭ 16 (-27.27%)
Mutual labels:  url-shortener
zone
A URL shortener / note sharing service.
Stars: ✭ 18 (-18.18%)
Mutual labels:  url-shortener
gitio
create short / vanity github urls from the terminal
Stars: ✭ 32 (+45.45%)
Mutual labels:  url-shortener
purl
Purl (Petite URL) is an open source project with the goal of providing you with your own private URL shortener!
Stars: ✭ 47 (+113.64%)
Mutual labels:  url-shortener
Bon
🍮 A small, simple/minimal self hosted URL shortener written in Go (Golang).
Stars: ✭ 12 (-45.45%)
Mutual labels:  url-shortener
klein
the minimalist URL shortener
Stars: ✭ 40 (+81.82%)
Mutual labels:  url-shortener
supaflare
URL shortener / redirection service powered by Supabase, Cloudflare Workers, Workers KV and Cloudflare Pages.
Stars: ✭ 51 (+131.82%)
Mutual labels:  url-shortener
gas-url-shortener
A URL Shortening service powered by Google Apps Script.
Stars: ✭ 43 (+95.45%)
Mutual labels:  url-shortener
go-url
Url Shortener for use inside organisation
Stars: ✭ 18 (-18.18%)
Mutual labels:  url-shortener
trym
🔗 A modern URL shortener
Stars: ✭ 29 (+31.82%)
Mutual labels:  url-shortener
mpngin
A simple and fast URL shortener with built in stats.
Stars: ✭ 31 (+40.91%)
Mutual labels:  url-shortener
idy
👓 An ID obfuscator for ActiveRecord
Stars: ✭ 15 (-31.82%)
Mutual labels:  url-shortener
elbo
Source code for elbo.in, an URL shortening service
Stars: ✭ 23 (+4.55%)
Mutual labels:  url-shortener
jlik.me
URL Shortener project.
Stars: ✭ 31 (+40.91%)
Mutual labels:  url-shortener
url-shortener
A golang URL Shortener
Stars: ✭ 35 (+59.09%)
Mutual labels:  url-shortener

Djanurl

基于 Django 的短网址程序. An English version follows.

需求

Django 支持的 Python3 版本

处了pip install -r requirements.txt, 还可能需要数据库驱动和 web 服务器

提示

  1. 请把自定义模板放置于 templates;
  2. 请将生产环境的配置写在 djanurl/production.py;
  3. 需要运行 python manage.py collectstatics. 这需要设置 STATIC_ROOT;
  4. production.py 设置 EXPLICIT_REDIRECT = True 开启显式跳转;
  5. 显式跳转模板请创建到自定义模板目录的surl/redirect.html, 可参考 surl 这个 app 的模板;
  6. 默认开启 i18n 和 i10n, 网站语言根据浏览器/系统语言自动判断.

Djanurl

A Django based url shortener project.

Requirements

This project is written in Python3. It should work well with all the versions that Django supports.

In addition to pip install -r requirements.txt, you may also need to install database drivers and http/wsgi servers.

Some Tips

  1. You should put your own templates in the templates folder in the project root directory;
  2. You may have your production settings set in djanurl/production.py
  3. You might need to run python manage.py collectstatics. In order to do this, you should have STATIC_ROOT set in your settings
  4. Set EXPLICIT_REDIRECT = True in production.py to enable explicit redirection
  5. Template used in explicit redirection is located at surl/redirect.html
  6. i18n and i10n is enabled by default. Language code is detected based on browser and os languages.

示例部署文件 Example Deployment Files

File 1: uwsgi.ini

[uwsgi]
socket=/tmp/ovz.im.sock
home=/path/to/virtualenv/
chdir=/path/to/project/
env=DJANGO_SETTINGS_MODULE=djanurl.settings
module=djanurl.wsgi:application
master=True
workers=8
pidfile=/tmp/ovz.im.pid
max-requests=5000
thunder-lock=True
vacuum=True
harakiri=120

File 2: supervisord.conf

....
[program:ovzim]
command = /path/to/uwsgi --ini /path/to/uwsgi.ini
stopsignal=QUIT
autostart=true
autorestart=true
stdout_logfile=/var/logs/ovz.log
redirect_stderr=true

File 3: nginx configuration ovz.im.conf

upstream ovzim {
    server unix:///tmp/ovz.im.sock;
}

server {
    listen 80;
    server_name www.ovz.im;
    return 302 $scheme://ovz.im$request_uri;
}

server {
    listen      80;
    server_name ovz.im;
    charset     utf-8;

    client_max_body_size 75M;

    location /static {
        root /path/to/project/;
    }

    location / {
        uwsgi_pass  ovzim;
        include     uwsgi_params;
    }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].