How to deploy a django website on pythonanywhere | django Web app deploying issues
It's a little bit annoying to find the best hosting service for your website when the development is completed. There are several hosting services which provides different plans to host a website. But it is very important to choose the right one because the speed does matter.
Today i am going to teach you that how you can deploy your website on Pythonanywhere
i will keep the process simple and step by step to make better understanding.
PythonAnywhere runs on super-powerful servers hosted by Amazon EC2 , and you can take full advantage of that. This is the main reason for selecting Pythonanywhere for web hosting. You can run or test your django web app on pythonanywhere for free (3 months free trial) .
Although if you want to use some other hosting services then you should visit any of the link from the following list.
Read More
It's a little bit annoying to find the best hosting service for your website when the development is completed. There are several hosting services which provides different plans to host a website. But it is very important to choose the right one because the speed does matter.
Today i am going to teach you that how you can deploy your website on Pythonanywhere
i will keep the process simple and step by step to make better understanding.
PythonAnywhere runs on super-powerful servers hosted by Amazon EC2 , and you can take full advantage of that. This is the main reason for selecting Pythonanywhere for web hosting. You can run or test your django web app on pythonanywhere for free (3 months free trial) .
Although if you want to use some other hosting services then you should visit any of the link from the following list.
Read More
Complete process of changing database from SQLite to MySQL - How to migrate a Django DB from SQLite to MySQL
One of the main benefit to use django for web development is that it comes with an inbuilt database/filesystem i.e SQLITE. Managing database and files is super easy in django. But there are some drawbacks of using SQLITE. With my experience if your website has a minimum traffic of about 100-200 per day OR you have 1000-2000 files (or more obviously) in your database, then the problems start rising. SQLITE gives amazing performance if your data is upto 2GB (can vary with your file types & size). Thus, you can not handle large traffic efficiently by using SQLITE.
Here are some advantages & disadvantages of using SQLITE :
Advantages :
1) Sqlite is Lightweight.
2) No Installation Needed.
3) Portable & reliable
Disadvantages :
1) SQLite is used to handle low to medium traffic.
2) Database size is restricted upto 2GB (in most cases).
Today i will show you how you can migrate db from SQLITE to MySQL in 6 simple steps. Just bare with me & i will provide the easiest way to do stuff in right manner.
Read More
One of the main benefit to use django for web development is that it comes with an inbuilt database/filesystem i.e SQLITE. Managing database and files is super easy in django. But there are some drawbacks of using SQLITE. With my experience if your website has a minimum traffic of about 100-200 per day OR you have 1000-2000 files (or more obviously) in your database, then the problems start rising. SQLITE gives amazing performance if your data is upto 2GB (can vary with your file types & size). Thus, you can not handle large traffic efficiently by using SQLITE.
Here are some advantages & disadvantages of using SQLITE :
Advantages :
1) Sqlite is Lightweight.
2) No Installation Needed.
3) Portable & reliable
Disadvantages :
1) SQLite is used to handle low to medium traffic.
2) Database size is restricted upto 2GB (in most cases).
Today i will show you how you can migrate db from SQLITE to MySQL in 6 simple steps. Just bare with me & i will provide the easiest way to do stuff in right manner.
Read More
" How to download a file in django | Making a large file downloadable from a url in django | How to serve Large files in django | Downloading a file from Django project directory
"
Sometimes we have to serve a file which may be a large file from our project directory. Suppose you want to transfer a file from your project directory to your friend or to some other person/server/platform. The one way is to download the file and then upload it to another platform or give it to the person manually, which is not a good approach.
This is a simple thing in Django. You can serve any file from any directory (i.e inside project directory) using a URL in Django. Just follow the steps shown below and you will find that some line of code will help you to do that.
Read More
Sometimes we have to serve a file which may be a large file from our project directory. Suppose you want to transfer a file from your project directory to your friend or to some other person/server/platform. The one way is to download the file and then upload it to another platform or give it to the person manually, which is not a good approach.
This is a simple thing in Django. You can serve any file from any directory (i.e inside project directory) using a URL in Django. Just follow the steps shown below and you will find that some line of code will help you to do that.
Read More
How to use proxy in python requests | http & https proxies - Scraping
Sometimes We need to scrape a website .......bla bla bla. Does it make any sense?? I am not going to do any kind of bullshit here. You all know whatever you are doing. This short article is going to be a small part of your long journey.
Today I am going to explain to you how you can use proxies during web scraping using python. There are 2 reasons behind your presence here. Either you are blocked by the server/website which you are trying to scrape or you are already smart enough to use proxies to bypass the firewall of a website's server.
Read More
Sometimes We need to scrape a website .......bla bla bla. Does it make any sense?? I am not going to do any kind of bullshit here. You all know whatever you are doing. This short article is going to be a small part of your long journey.
Today I am going to explain to you how you can use proxies during web scraping using python. There are 2 reasons behind your presence here. Either you are blocked by the server/website which you are trying to scrape or you are already smart enough to use proxies to bypass the firewall of a website's server.
Read More
Top Django Querysets, How to filter records | Fetching data from database efficiently - Django
Just learning a framework and implementing it is not enough for you as a developer. A good programmer always tries to write optimized code. In Django like framework, it is very important to make the execution of code efficient. Interacting with the database like saving the files, updating files in the database, deleting files and extracting files from the database are the point which can make your website slow.
Fetching data from the database should be as fast as possible. It makes the server response time fast (i.e minimum). For this purpose QuerySets plays an important role. So in this article, I am going to explain how you can fetch data efficiently from database using querysets.
Read More
Just learning a framework and implementing it is not enough for you as a developer. A good programmer always tries to write optimized code. In Django like framework, it is very important to make the execution of code efficient. Interacting with the database like saving the files, updating files in the database, deleting files and extracting files from the database are the point which can make your website slow.
Fetching data from the database should be as fast as possible. It makes the server response time fast (i.e minimum). For this purpose QuerySets plays an important role. So in this article, I am going to explain how you can fetch data efficiently from database using querysets.
Read More
Some recent posts
How to deploy a django website on pythonanywhere | django Web app deploying...
Complete process of changing database from SQLite to MySQL - How to migrat...
" How to download a file in django | Making a large file downloadable from ...
How to use proxy in python requests | http & https proxies - Scraping...
Top Django Querysets, How to filter records | Fetching data from database e...
How to change base url or domain in sitemap - Django ...
How to Make a Website - Everything you should know about web development...
What is Javascript - Features and usages ...
Top 5 Interview Questions : Tips for HR round ...
How to get job in IT : Perfect resume guide for IT job ...
View all...
Popular Posts
How to compress image before saving to DBMigrating from SQLite to MySQL in Django
Choosing correct M.2 SSD
How to deploy a web app on pythonanywhere
5 Steps to create sitemap in Django
How to send mails automatically in Django
Handling arguments in django urls
Media and Static configuration in Django
Language Translation & detection using python
React Js vs Angular Js
5 Tips to improve Programming Logics