31 May ‘14
- Managed to link my Report Bug button to a new page.
- Created a PostgreSQL database and did a syncdb with website folder
- Investigated django directory structure. Thinking of the possibility to make this into a new app, like website, tracker…#note- Ask skay
Very strangely, after a 3 hour break or so, when I tried to get the server running again, I get the error:
ImportError: No module named psycopg2.extensions
Whereas pip tells me I have psycopg2 and it’s up-to-date.
Advice from #Django: “just make sure you installed it inside your virtual env or that your virtual env takes the system site packages” for Psycopg2. Okay, linovia on #Django helped me. I had to install psycopg2 AFTER activating the virtual env.
To activate virtualenv: “. bin/activate”;
To deactivate it: “deactivate”
Created a dummy HTML form on new page, trying to fetch data using Django now.