Re: ModuleNotFoundError: No module named 'tutorial.quickstart'

2022-09-03 Thread Swetank Subham Roy
It should be: import .views Or from .views import your_view It should be a relative import On Sat, 3 Sep 2022 at 7:16 PM, Lakshyaraj Dash wrote: > She has views inside tutorials then quickstart. She has named every folder > as tutorial. She needs to rename some folders > > On Sat, 3 Sep, 2022,

Showing old data

2019-04-01 Thread Swetank Subham Roy
Hello folks, I have created a hosted a django web app on apache2 using mod_wsgi, the content should automatically refresh everyday. But it is not getting refreshed automatically. I need to manually restart or reload the apache in order to make the changes reflect. I don't want to set cron to restar

Re: How to transfer django projects from one pc to another

2018-12-10 Thread Swetank Subham Roy
1. Make requirement file let's say requirement.txt using pip freeze command, which keep records of packages used in the project. 2. Make a copy of project folder to the new machine. 3. Create virtual environment on new machine. 4. Activate and install package from requirement.txt file to the virtua

Re: Error installing mysqldb module !

2018-11-11 Thread Swetank Subham Roy
First of all you have to install 'libmysqlclient' package globally then 'mysqlclient-dev' in project environment On Sun, Nov 11, 2018, 4:42 PM Ansh Srivastava Hey there! I m tryin' to connect mysql database with django, While doin' > it number of errors prompted out as below:- > Error sayin' :(in

RE: Can't install mysqlclient

2018-10-27 Thread Swetank Subham Roy
Yes Linux is best suited OS for developers. You can start getting familiar with Linux by using latest Ubuntu LTS version. Ubuntu provides a better GUI and ease-of-using for beginners. But getting hands-on terminal commands are of great use. -- You received this message because you are subscrib

Re: Can't install mysqlclient

2018-10-26 Thread Swetank Subham Roy
If you are on Linux(debian): You should first install libmysqlclient-dev using command $ sudo apt-get install libmysqlclient-dev Then proceed with installing mysqlclient through pip... For more information you can follow link: https://pypi.org/project/mysqlclient/ On Thu 25 Oct, 2018, 6:59 PM