Giter VIP home page Giter VIP logo

linktree's Introduction

LinkPlant

A link-in-bio tool like Linktree that allows you to create a webpage that has all your links in one place.

You'll be able to create, edit, and delete links and create a landing page that displays all your links to share with the world!

  • Built-in class-based generic views
  • Generic editing views

1 2 3 4 5

Tech stack

Django

How to upload Django Project to Render.com

1. Visit the render.com website and make an account.

2. Select PostgreSQL from the New+ dropdown.

image

3. Give a name to that database and then create the database

4. Click on Connect and copy the External Database URL

5. Now go into your project and in settings.py file, download and import dj_database_url

pip install dj-database-url

6. Now search for DATABASES = {} and below that write down this code

DATABASES["default"] = dj_database_url.parse("your External Database URL")

7. Then install psycopg2 or psycopg2-binary in your project

pip install psycopg2
pip install psycopg2-binary

8. Migrate your project, this will admit all the changes made to your project

python manage.py migrate

Now your database has been connected and now you can check it by using and Postgres application.

9. Now store all your variables in env file so that it doesnt get leaked when you deploy this web service to the internet

10. after making env file and settings things up. now again go to render.com and click new+ to deploy Django application

11. Select the web services options and select the repo in which this project is stored.

12. Now, name the project, choose the runtime language, and also set the build command for the service to run on that server.

13. Now go to your project and also install Gunicorn package first and then push the changes to the GitHub.

pip install gunicorn
pip freeze > requirement.txt
git add .
git commit -m "add gunicorn"
git push

14. Now in render.com set the start command as "gunicorn project_name.wsgi" as name in the folder of your project

image in this case "linktree" is the name

gunicorn linktree.wsgi

15. Now click on create Web Service button and now as it deploy there can be some bugs , so fix it on the go, according to your requirements.

Contribute to the page if you need to by cloning this project, raise an issue, or submit a PR.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.