Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,093 members, 7,953,329 topics. Date: Thursday, 19 September 2024 at 02:25 PM |
Nairaland Forum / Science/Technology / Programming / My New Year Resolutions As A Python Nigga (1588 Views)
My New Excel Dashboard / A Python Program To Check The Risk Of Corona Virus. / Things You Can Learn From Mark Zuckerberg’s Past New Year Resolutions (2) (3) (4)
My New Year Resolutions As A Python Nigga by badthinds: 12:45am On Jan 01, 2018 |
1. Fire on with Django ...before I forget pip install pymongo==3.4.0 ...signin out. 2 Likes
|
Re: My New Year Resolutions As A Python Nigga by mikejj(m): 12:47am On Jan 01, 2018 |
so you carried this sense into 2018 |
Re: My New Year Resolutions As A Python Nigga by Nobody: 12:52am On Jan 01, 2018 |
This one pass me o |
Re: My New Year Resolutions As A Python Nigga by Otisjay10: 7:57pm On Jan 01, 2018 |
badthinds:pls answer these questions. 1. How do i activate the virtual environment in python 2. How do i define the environment variable DJANGO_SETTINGS_MODULE i use windows. Thanks alot. |
Re: My New Year Resolutions As A Python Nigga by badthinds: 10:10am On Jun 03, 2018 |
Otisjay10: This is the first time I've come back to Nairaland since January... Pardon me. I guess you've solved the issue by now... But may be this could help someone else... Configuring django could somehow be a headache so I invented a nice solution which is to simply run a file first 1. First create this file (projectconf.py) keep it any where import os os.environ["DJANGO_SETTINGS_MODULE"] = 'lawyersforum.settings' # os.putenv("DJANGO_SETTINGS_MODULE", "project.settings" would also work, os.unsetenv(key) to delete os.environ["PYTHONPATH"] = #project path separated with ":" os.system('cd path_to_project/project') os.system("django-admin startproject project" os.system("export DJANGO_SETTINGS_MODULE=lawyersforum.settings" os.system("django-admin runserver 127.0.0.1:8004" while True: os.system(raw_input("$ ") This will definitely solve the issues... 2. Run this file Let me know of any other issues Run this file and you're good to go |
(1) (Reply)
Php Job Vacancy / Does Anyone Know About Decagon? / I Asked Chatgpt To Write A Poem About Nairaland. Here's The Output
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8 |