Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,162,784 members, 7,851,656 topics. Date: Thursday, 06 June 2024 at 03:44 AM

My New Year Resolutions As A Python Nigga - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / My New Year Resolutions As A Python Nigga (1551 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)

(1) (Reply) (Go Down)

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
grin 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:
1. Fire on with Django
...before I forget
pip install pymongo==3.4.0
...signin out.
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:


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.

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"wink 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"wink
os.system("export DJANGO_SETTINGS_MODULE=lawyersforum.settings"wink
os.system("django-admin runserver 127.0.0.1:8004"wink
while True:
os.system(raw_input("$ "wink)

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)

Java Developer Needed / I Want To Learn Artificial Intelligence, Where Do I Start From / Please, Help This Phone Number Keeps Calling My Line

(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. 9
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.