The next step is migrate all your models and settings to the database hosted on superbase. Go to your projects settings.py file and paste in the values you copied above in their respective postions in your database configuration DATABASES = Press C tr + s to save your changes Migrate your model structure to the databse You will see a page similar to the one belowĬopy your Database host, Database name, Database port, Database user, and Database password(i.e its the password you used to create the project). Next click on Database from the menu that appears to acces the database configurations. Engine => connection engine for your database(default using psycopg2 is django.db.backends.postgresql_psycopg2)įrom the image in the create a project step above you can see a left hand side navigation bar and towards the bottom there is a settings icon click on it to be able to access the setting for your project.Host => the host credential for your database.Name => name associated with your database.Port => port for your database(default used by poasgres is 5432).What we need to be able to use this progreSQL database for our website are listed below Storage: for storing large files (the free tier plan comes with free 1gb storage)įor this post I am going to focus on using the database feature of this project.Auth: for managing users for your project.Like I said earlier supabase has many awesome features which include If the project was created successfully you should see a page similar to the one below Finally click on create project and then wait a couple of minutes for your project to be created for you.In the pricing field leave it at free-$0/month.There are several regions available select the one closest to you.Type in a strong password or use the generate password feauture to auto generate one for you.Click on new project and select the organisation you created in the previous step.So follow the instructions and create an organisation on superbase Create a project The way supabase works you have to create an organisation and then within that organisation you can create different projects. Go to and signup for free tier plan account (I recommend signing up with github).Īfter signing up, login to the account and you would be shown a dashboard similar to the one below Ps if your postgreSQL database gets accessed atleaset once a week your project will remain active and unpaused Creating an account on supabase But that should'nt be an issue as the free plan is to be used mostly for testing out our projects in a production enviroment and it takes less than 5 mins to unpaused the projects. One drawback from this platform is that free projects gets paused after a week of inactivity. Checkout below to see all of superbase plans Īs you can see supabase offers a free plan that provides 500mb data storage using postgreSQL and 1gb file storage per project. This platform is a firebase alternative that offers many features which I recommend you to checkout on their website but for the purpose of this post we are going to concentrate on the fact that their free plan gives us access to hosting 2 postgreSQL database for free with a 500mb data limit on each. One of the major drawback of this platform is that unlike heroku they does not provide a database attachement when you host on their platform so to solve that issue I made more research and discovered supabase. One of the awesome platforms I found from my research is vercel hosting platform which allows you to host your django website for free(checkout this post to learn how its done). Introductionĭue to Heroku's decision to stop providing free dynaos for thier free tier plan alot of Django web developers have been searching for other free alternatives to host their websites. In this post I am going to be guiding you through the process of hosting your postgreSQL database on supabase for free using supabase free tier plan.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |