URL_Shortener_Using_Django_Framework.zip
大小:91.11KB
价格:34积分
下载量:0
评分:
5.0
上传者:sheji888
更新日期:2025-09-22

Django框架URL缩短程序

资源文件列表(大概)

文件名
大小
Url-Shortener/
-
Url-Shortener/LICENSE
1.06KB
Url-Shortener/README.md
2.11KB
Url-Shortener/staticfiles/
-
Url-Shortener/Pipfile.lock
8.76KB
Url-Shortener/db.sqlite3
144KB
Url-Shortener/manage.py
669B
Url-Shortener/Pipfile
225B
Url-Shortener/.git/
-
Url-Shortener/.git/index
3.05KB
Url-Shortener/.git/logs/
-
Url-Shortener/.git/logs/refs/
-
Url-Shortener/.git/logs/refs/remotes/
-
Url-Shortener/.git/logs/refs/remotes/origin/
-
Url-Shortener/.git/logs/refs/remotes/origin/HEAD
196B
Url-Shortener/.git/logs/refs/heads/
-
Url-Shortener/.git/logs/refs/heads/master
196B
Url-Shortener/.git/logs/HEAD
196B
Url-Shortener/.git/objects/
-
Url-Shortener/.git/objects/pack/
-
Url-Shortener/.git/objects/pack/pack-9d1340577c7b1cef2dc643d6c9a95c28426bb772.idx
4.68KB
Url-Shortener/.git/objects/pack/pack-9d1340577c7b1cef2dc643d6c9a95c28426bb772.pack
30.52KB
Url-Shortener/.git/objects/info/
-
Url-Shortener/.git/description
73B
Url-Shortener/.git/branches/
-
Url-Shortener/.git/refs/
-
Url-Shortener/.git/refs/tags/
-
Url-Shortener/.git/refs/remotes/
-
Url-Shortener/.git/refs/remotes/origin/
-
Url-Shortener/.git/refs/remotes/origin/HEAD
32B
Url-Shortener/.git/refs/heads/
-
Url-Shortener/.git/refs/heads/master
41B
Url-Shortener/.git/packed-refs
114B
Url-Shortener/.git/config
272B
Url-Shortener/.git/hooks/
-
Url-Shortener/.git/hooks/pre-commit.sample
1.6KB
Url-Shortener/.git/hooks/commit-msg.sample
896B
Url-Shortener/.git/hooks/pre-push.sample
1.32KB
Url-Shortener/.git/hooks/update.sample
3.53KB
Url-Shortener/.git/hooks/pre-applypatch.sample
424B
Url-Shortener/.git/hooks/pre-receive.sample
544B
Url-Shortener/.git/hooks/pre-merge-commit.sample
416B
Url-Shortener/.git/hooks/fsmonitor-watchman.sample
3.01KB
Url-Shortener/.git/hooks/prepare-commit-msg.sample
1.46KB
Url-Shortener/.git/hooks/applypatch-msg.sample
478B
Url-Shortener/.git/hooks/post-update.sample
189B
Url-Shortener/.git/hooks/pre-rebase.sample
4.78KB
Url-Shortener/.git/info/
-
Url-Shortener/.git/info/exclude
240B
Url-Shortener/.git/HEAD
23B
Url-Shortener/.gitignore
1.77KB
Url-Shortener/router/
-
Url-Shortener/router/admin.py
115B
Url-Shortener/router/views.py
1.01KB
Url-Shortener/router/forms.py
156B
Url-Shortener/router/__pycache__/
-
Url-Shortener/router/__pycache__/admin.cpython-39.pyc
277B
Url-Shortener/router/__pycache__/views.cpython-39.pyc
1.38KB
Url-Shortener/router/__pycache__/models.cpython-39.pyc
694B
Url-Shortener/router/__pycache__/__init__.cpython-39.pyc
165B
Url-Shortener/router/__pycache__/apps.cpython-39.pyc
385B
Url-Shortener/router/__pycache__/urls.cpython-39.pyc
470B
Url-Shortener/router/__pycache__/forms.cpython-39.pyc
590B
Url-Shortener/router/apps.py
87B
Url-Shortener/router/static/
-
Url-Shortener/router/static/router/
-
Url-Shortener/router/static/router/main.css
1.13KB
Url-Shortener/router/models.py
343B
Url-Shortener/router/tests.py
60B
Url-Shortener/router/migrations/
-
Url-Shortener/router/migrations/0002_auto_20200830_0835.py
361B
Url-Shortener/router/migrations/0001_initial.py
526B
Url-Shortener/router/migrations/__pycache__/
-
Url-Shortener/router/migrations/__pycache__/0001_initial.cpython-39.pyc
674B
Url-Shortener/router/migrations/__pycache__/0002_auto_20200830_0835.cpython-39.pyc
582B
Url-Shortener/router/migrations/__pycache__/0005_auto_20200830_1054.cpython-39.pyc
783B
Url-Shortener/router/migrations/__pycache__/0004_auto_20200830_1021.cpython-39.pyc
602B
Url-Shortener/router/migrations/__pycache__/__init__.cpython-39.pyc
176B
Url-Shortener/router/migrations/__pycache__/0003_auto_20200830_0835.cpython-39.pyc
569B
Url-Shortener/router/migrations/0003_auto_20200830_0835.py
359B
Url-Shortener/router/migrations/0004_auto_20200830_1021.py
377B
Url-Shortener/router/migrations/0005_auto_20200830_1054.py
648B
Url-Shortener/router/migrations/__init__.py
-
Url-Shortener/router/__init__.py
-
Url-Shortener/router/templates/
-
Url-Shortener/router/templates/router/
-
Url-Shortener/router/templates/router/home.html
543B
Url-Shortener/router/templates/router/base.html
2.59KB
Url-Shortener/router/templates/router/route_list.html
1.58KB
Url-Shortener/router/templates/router/how_to_use.html
529B
Url-Shortener/router/urls.py
317B
Url-Shortener/Procfile
32B
Url-Shortener/requirements.txt
651B
Url-Shortener/url_shortener/
-
Url-Shortener/url_shortener/__pycache__/
-
Url-Shortener/url_shortener/__pycache__/settings.cpython-39.pyc
2.49KB
Url-Shortener/url_shortener/__pycache__/__init__.cpython-39.pyc
172B
Url-Shortener/url_shortener/__pycache__/wsgi.cpython-39.pyc
587B
Url-Shortener/url_shortener/__pycache__/urls.cpython-39.pyc
1002B
Url-Shortener/url_shortener/wsgi.py
403B
Url-Shortener/url_shortener/asgi.py
403B
Url-Shortener/url_shortener/__init__.py
-
Url-Shortener/url_shortener/urls.py
802B
Url-Shortener/url_shortener/settings.py
3.29KB

资源内容介绍

Django框架,这是一个关于URL缩短器的高级项目,可以将任何给定的URL缩短为您选择的URL。缩短的URL可以作为指向所需网站的重定向链接。该系统的后端完全基于Django框架构建,前端则采用HTML和CSS。它具有与流行的Bit.ly或adf.ly URL缩短器类似的功能,可以执行所有任务,如将URL缩短代码自定义为您选择的代码,也可以对其进行编程,为缩短的URL生成随机slug。该应用程序还提供了一个管理面板,通过该面板可以控制所有缩短的网址及其重定向链接。这是一个具有高级功能的高级项目。管理账户:用户名:admin密码:admin
# URL Shortener AppA Django URL Shortener App created with Django 3.0 and Python 3.8 to shorten any URL given. This project is made to learn Django.**Live Site running on Heroku**: https://myurlshortener1.herokuapp.com/## Demostration![Shortening a URL](http://g.recordit.co/NtR9A0S6N9.gif)## How to Setup in Localhost1. Clone this repository.2. Open the cloned repository.3. Install dependencies using ``pip install -r requirements.txt``**OR**Install ``pipenv`` using ``pip install pipenv`` and initialise a Virtual Machine using ``pipenv install`` in the directory.4. Set environment variables like `SECRET_KEY`, `DEBUG_VALUE`.5. Run the Django Server using ``python manage.py runserver`` and then goto ``localhost:8000`` or ``127.0.0.1:8000`` and see the server running.### Environment Variables:`SECRET_KEY`: Django secret key which can be any long hexadecimal value. Django recommends *atleast* **50 characters** to make it secure.`DEBUG_VALUE`: Set it as **"True"** for Debug environment and **"False"** for Production.## How to Setup for ProductionRefer on how to deploy Python apps in Heroku [here](https://devcenter.heroku.com/articles/deploying-python) and Django app configuration [here](https://devcenter.heroku.com/articles/django-app-configuration).## Features- Can shorten any url.- Can see all the shortened urls created with it.- Can choose any custom value to shorten the url.### Features to add- Improve the CSS of the site.- Add a User Authentication system.- Add a process to delete any redirects not used within 7 days.*More features can be suggested in Issues.*#### Known Issues:No issues detected till now.*Please make a GitHub issue if any other bugs are found.*## NotesThis project was created on **Ubuntu-20.04 LTS** and tested under **Windows 10** and **Ubuntu**, and is expected to work fully in other systems too.This project is still under development. Parts of the source codes may not be well documented. Also suitable prompts may not be available for the user at the moment.More features and fixes are yet to come. Meanwhile suggestions, ideas, bug reports are welcomed.

用户评论 (0)

发表评论

captcha