首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

Django框架URL缩短程序

信息化管理 91.11KB 33 需要积分: 1
立即下载

资源介绍:

Django框架,这是一个关于URL缩短器的高级项目,可以将任何给定的URL缩短为您选择的URL。缩短的URL可以作为指向所需网站的重定向链接。 该系统的后端完全基于Django框架构建,前端则采用HTML和CSS。它具有与流行的Bit.ly或adf.ly URL缩短器类似的功能,可以执行所有任务,如将URL缩短代码自定义为您选择的代码,也可以对其进行编程,为缩短的URL生成随机slug。 该应用程序还提供了一个管理面板,通过该面板可以控制所有缩短的网址及其重定向链接。这是一个具有高级功能的高级项目。 管理账户: 用户名:admin 密码:admin
# URL Shortener App A 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 Localhost 1. 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 Production Refer 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.* ## Notes This 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.

资源文件列表:

URL_Shortener_Using_Django_Framework.zip 大约有104个文件
  1. Url-Shortener/
  2. Url-Shortener/LICENSE 1.06KB
  3. Url-Shortener/README.md 2.11KB
  4. Url-Shortener/staticfiles/
  5. Url-Shortener/Pipfile.lock 8.76KB
  6. Url-Shortener/db.sqlite3 144KB
  7. Url-Shortener/manage.py 669B
  8. Url-Shortener/Pipfile 225B
  9. Url-Shortener/.git/
  10. Url-Shortener/.git/index 3.05KB
  11. Url-Shortener/.git/logs/
  12. Url-Shortener/.git/logs/refs/
  13. Url-Shortener/.git/logs/refs/remotes/
  14. Url-Shortener/.git/logs/refs/remotes/origin/
  15. Url-Shortener/.git/logs/refs/remotes/origin/HEAD 196B
  16. Url-Shortener/.git/logs/refs/heads/
  17. Url-Shortener/.git/logs/refs/heads/master 196B
  18. Url-Shortener/.git/logs/HEAD 196B
  19. Url-Shortener/.git/objects/
  20. Url-Shortener/.git/objects/pack/
  21. Url-Shortener/.git/objects/pack/pack-9d1340577c7b1cef2dc643d6c9a95c28426bb772.idx 4.68KB
  22. Url-Shortener/.git/objects/pack/pack-9d1340577c7b1cef2dc643d6c9a95c28426bb772.pack 30.52KB
  23. Url-Shortener/.git/objects/info/
  24. Url-Shortener/.git/description 73B
  25. Url-Shortener/.git/branches/
  26. Url-Shortener/.git/refs/
  27. Url-Shortener/.git/refs/tags/
  28. Url-Shortener/.git/refs/remotes/
  29. Url-Shortener/.git/refs/remotes/origin/
  30. Url-Shortener/.git/refs/remotes/origin/HEAD 32B
  31. Url-Shortener/.git/refs/heads/
  32. Url-Shortener/.git/refs/heads/master 41B
  33. Url-Shortener/.git/packed-refs 114B
  34. Url-Shortener/.git/config 272B
  35. Url-Shortener/.git/hooks/
  36. Url-Shortener/.git/hooks/pre-commit.sample 1.6KB
  37. Url-Shortener/.git/hooks/commit-msg.sample 896B
  38. Url-Shortener/.git/hooks/pre-push.sample 1.32KB
  39. Url-Shortener/.git/hooks/update.sample 3.53KB
  40. Url-Shortener/.git/hooks/pre-applypatch.sample 424B
  41. Url-Shortener/.git/hooks/pre-receive.sample 544B
  42. Url-Shortener/.git/hooks/pre-merge-commit.sample 416B
  43. Url-Shortener/.git/hooks/fsmonitor-watchman.sample 3.01KB
  44. Url-Shortener/.git/hooks/prepare-commit-msg.sample 1.46KB
  45. Url-Shortener/.git/hooks/applypatch-msg.sample 478B
  46. Url-Shortener/.git/hooks/post-update.sample 189B
  47. Url-Shortener/.git/hooks/pre-rebase.sample 4.78KB
  48. Url-Shortener/.git/info/
  49. Url-Shortener/.git/info/exclude 240B
  50. Url-Shortener/.git/HEAD 23B
  51. Url-Shortener/.gitignore 1.77KB
  52. Url-Shortener/router/
  53. Url-Shortener/router/admin.py 115B
  54. Url-Shortener/router/views.py 1.01KB
  55. Url-Shortener/router/forms.py 156B
  56. Url-Shortener/router/__pycache__/
  57. Url-Shortener/router/__pycache__/admin.cpython-39.pyc 277B
  58. Url-Shortener/router/__pycache__/views.cpython-39.pyc 1.38KB
  59. Url-Shortener/router/__pycache__/models.cpython-39.pyc 694B
  60. Url-Shortener/router/__pycache__/__init__.cpython-39.pyc 165B
  61. Url-Shortener/router/__pycache__/apps.cpython-39.pyc 385B
  62. Url-Shortener/router/__pycache__/urls.cpython-39.pyc 470B
  63. Url-Shortener/router/__pycache__/forms.cpython-39.pyc 590B
  64. Url-Shortener/router/apps.py 87B
  65. Url-Shortener/router/static/
  66. Url-Shortener/router/static/router/
  67. Url-Shortener/router/static/router/main.css 1.13KB
  68. Url-Shortener/router/models.py 343B
  69. Url-Shortener/router/tests.py 60B
  70. Url-Shortener/router/migrations/
  71. Url-Shortener/router/migrations/0002_auto_20200830_0835.py 361B
  72. Url-Shortener/router/migrations/0001_initial.py 526B
  73. Url-Shortener/router/migrations/__pycache__/
  74. Url-Shortener/router/migrations/__pycache__/0001_initial.cpython-39.pyc 674B
  75. Url-Shortener/router/migrations/__pycache__/0002_auto_20200830_0835.cpython-39.pyc 582B
  76. Url-Shortener/router/migrations/__pycache__/0005_auto_20200830_1054.cpython-39.pyc 783B
  77. Url-Shortener/router/migrations/__pycache__/0004_auto_20200830_1021.cpython-39.pyc 602B
  78. Url-Shortener/router/migrations/__pycache__/__init__.cpython-39.pyc 176B
  79. Url-Shortener/router/migrations/__pycache__/0003_auto_20200830_0835.cpython-39.pyc 569B
  80. Url-Shortener/router/migrations/0003_auto_20200830_0835.py 359B
  81. Url-Shortener/router/migrations/0004_auto_20200830_1021.py 377B
  82. Url-Shortener/router/migrations/0005_auto_20200830_1054.py 648B
  83. Url-Shortener/router/migrations/__init__.py
  84. Url-Shortener/router/__init__.py
  85. Url-Shortener/router/templates/
  86. Url-Shortener/router/templates/router/
  87. Url-Shortener/router/templates/router/home.html 543B
  88. Url-Shortener/router/templates/router/base.html 2.59KB
  89. Url-Shortener/router/templates/router/route_list.html 1.58KB
  90. Url-Shortener/router/templates/router/how_to_use.html 529B
  91. Url-Shortener/router/urls.py 317B
  92. Url-Shortener/Procfile 32B
  93. Url-Shortener/requirements.txt 651B
  94. Url-Shortener/url_shortener/
  95. Url-Shortener/url_shortener/__pycache__/
  96. Url-Shortener/url_shortener/__pycache__/settings.cpython-39.pyc 2.49KB
  97. Url-Shortener/url_shortener/__pycache__/__init__.cpython-39.pyc 172B
  98. Url-Shortener/url_shortener/__pycache__/wsgi.cpython-39.pyc 587B
  99. Url-Shortener/url_shortener/__pycache__/urls.cpython-39.pyc 1002B
  100. Url-Shortener/url_shortener/wsgi.py 403B
  101. Url-Shortener/url_shortener/asgi.py 403B
  102. Url-Shortener/url_shortener/__init__.py
  103. Url-Shortener/url_shortener/urls.py 802B
  104. Url-Shortener/url_shortener/settings.py 3.29KB
0评论
提交 加载更多评论
其他资源 简单的Django框架测验应用程序
Django框架,程序提供了添加任意数量的问题、在系统中注册用户和参加测验等功能。它还包含测验结束后的所有验证和评分系统。 管理账户: 用户名:admin 密码:admin
Django框架的音乐流媒体应用程序
这是一款高级音乐流媒体服务应用程序,用户可以登录系统,添加相册,并将歌曲添加到相册中。通过这样做,在系统上注册的其他用户也可以查看专辑并收听其中的所有歌曲。
PCL2022+CUDA11.6.2
PCL2022+CUDA11.6.2配置
HT-Hawk飞控源代码技术资料.zip
HT-Hawk飞控源代码技术资料.zip
Django学校管理系统web应用程序
基于Django和sqlite3的应用程序,提供了将学生注册到数据库、监控他们的出勤、成绩以及相关信息等功能。 该系统在后端运行Django框架,在前端运行HTML、CSS。它有一个内置的交互式后台,供教师使用,教师可以监控学生在学校的活动,如出勤、成绩和入学情况。 除了学生和教师,学校的其他员工也可以从同一个后台进行管理。还有一个单独的管理面板,通过该面板可以管理和控制每个用户及其数据。 管理账户: 用户名:admin 密码:admin
Django构建的简单图库应用程序
这是一个使用Django构建的简单图库应用程序,它提供了添加照片的功能,包括拍摄照片的类别、日期和位置。它还包含漂亮的响应式UI设计,可以显示存储在图库中的所有照片。 管理账户: 用户名:admin 密码:testing321
python-外卖点餐web应用程序
使用Django框架。它包含登录/注册、查看所有食品、将食品添加到卡中以及使用支付系统结账等功能。 该系统在后端运行Django框架,在前端运行HTML、CSS。它包含与流行的UberEats应用程序类似的功能,用于在线订购食物。 管理面板: 用户名:admin 密码:admin
课件-后端代码-Python.zip
课件-后端代码-Python.zip