Try Django Tutorial 18 of 21 – Create MySQL database for a Django Production Server and setup




Try Django Tutorial 18 of 21 – Create MySQL database for a Django Production Server and setup settings Webfaction Sign-Up Deals: 2 months for the price of 1 …

Original source


10 responses to “Try Django Tutorial 18 of 21 – Create MySQL database for a Django Production Server and setup”

  1. Thank you for making these videos. The best I've seen so far on youtube. Shows how programming works in real time with these technologies. Super interesting. I don't use mac but appreciate finding out that people do use mac to program.

  2. Hey Guys, after doing the apache2 restart and attempting to log onto my website i get a "502 bad gateway error" any ideas? 

    Edit: I fixed this error by aligning the port in my settings file with the one on the webfaction hosting website however  now I get an internal server error because it is saying "no module named mvp_landing.settings"

    Edit2: FIGURED IT OUT! You need to append the path to your project directory to your system path within webfaction. 

    You can use the python command

    sys.path.append('YOUR_PATH_TO_SRC")

    And then it should work. 

  3. thanks for the coupon on webfaction. I am getting this error, No module named  MySQLdb. Any thoughts? Using Windows/Python3.4/Django 1.6.6.

    [bpitchfo@web419 src]$ ls
    manage.py  professorpitch
    [bpitchfo@web419 src]$ python3.4 manage.py syncdb
    Traceback (most recent call last):
      File "/home/bpitchfo/webapps/professor/lib/python3.4/django/db/backends/mysql/base.py", line 14, in <module>
        import MySQLdb as Database
    ImportError: No module named 'MySQLdb'
    (and a bunch more error exceptrions below this)

Leave a Reply