Setting up the Dev environment

30 views
Skip to first unread message

satyaakam goswami

unread,
Dec 23, 2012, 9:31:24 PM12/23/12
to fossa...@googlegroups.com
Hi,
     I have seen on request from Akash on Facebook asking on how to setup the dev environment , i think it is a generic enough issue so i have edited this page for everyone to follow 



let me know if anything is not working according to steps 


-Satya

Kantesh Raj

unread,
Dec 23, 2012, 11:46:46 PM12/23/12
to fossa...@googlegroups.com
Hey,
 

Steps given on wiki for setting environment did not work for me. It show error.
I have done following to set virtual environment:

1> mv settings.py settings1.py
2> cp settings_local.dist.py settings.py

3> open settings.py with emacs or any text editor and edit first line:
    from settings1 import *

Please verify steps on wiki page.

--
Kantesh Raj

satyaakam goswami

unread,
Dec 23, 2012, 11:52:32 PM12/23/12
to fossa...@googlegroups.com
what is the exact error are you getting ?


-Satya
fossevents.in

Kantesh Raj

unread,
Dec 24, 2012, 12:01:47 AM12/24/12
to fossa...@googlegroups.com
Hey,

what is the exact error are you getting ?

settings_local.dist.py is dependent on settings.py (check first line of settings_local.dist.py.)
if we copy settings_local.dist.py to settings.py, it will show many error at line number 1,85,91.
error are:

Traceback (most recent call last):
  File "manage.py", line 16, in <module>
    import settings
  File "/home/kantesh/Temp/fossacademy2/lernanta/settings.py", line 85, in <module>
    INSTALLED_APPS += (
NameError: name 'INSTALLED_APPS' is not defined 

--
Kantesh Raj

aka

unread,
Dec 24, 2012, 7:40:44 AM12/24/12
to fossa...@googlegroups.com

aka

unread,
Dec 24, 2012, 7:45:19 AM12/24/12
to fossa...@googlegroups.com


Sir, i was able to establish the environment

but still i cant is the interface using python manage.py runserver
it says,

"A server error occurred. Please contact the administrator."




aka

unread,
Dec 24, 2012, 7:47:54 AM12/24/12
to fossa...@googlegroups.com


On Monday, December 24, 2012 10:31:47 AM UTC+5:30, Kantesh wrote:


kantesh: what i did was removed the "+" sign after INSTALLED_APPS
that resolved the error
is it correct or wrong..???

satyaakam goswami

unread,
Dec 24, 2012, 8:04:14 AM12/24/12
to fossa...@googlegroups.com
Sir, i was able to establish the environment

but still i cant is the interface using python manage.py runserver
it says,

"A server error occurred. Please contact the administrator."

can you paste the exact error you are getting on pastebin somewhere and paste the link here .

-Satya


aka

unread,
Dec 24, 2012, 1:24:56 PM12/24/12
to fossa...@googlegroups.com


after giving command "python manage.py runserver"
browser says when i used localhost:8000

"A server error occurred. Please contact the administrator."

and at the shell part http://pastebin.com/Ss7BC0td

satyaakam goswami

unread,
Dec 24, 2012, 10:56:46 PM12/24/12
to fossa...@googlegroups.com
after giving command "python manage.py runserver"
browser says when i used localhost:8000

"A server error occurred. Please contact the administrator."

and at the shell part http://pastebin.com/Ss7BC0td


strange this  should read as below

ROOT_URLCONF = 'lernanta.urls'





aka

unread,
Dec 26, 2012, 6:55:34 AM12/26/12
to fossa...@googlegroups.com
Sir, i did it.

but still dere are errors.

there is some problem with settings.py and settings_local.dist.py

i,e,
cp settings_local.dist.py settings.py

satyaakam goswami

unread,
Dec 26, 2012, 6:57:40 AM12/26/12
to fossa...@googlegroups.com

Sir, i did it.

but still dere are errors.

there is some problem with settings.py and settings_local.dist.py

i,e,
cp settings_local.dist.py settings.py


can you come on IRC now ? #fossacademy 

-Satya
 

satyaakam goswami

unread,
Dec 26, 2012, 11:51:30 AM12/26/12
to fossa...@googlegroups.com
i have figured out some steps which were different and working on the tree , but  after the merge they are not working here are the errors i am getting http://dpaste.de/D8E1B/ .

-Satya
 

satyaakam goswami

unread,
Dec 27, 2012, 2:03:57 AM12/27/12
to fossa...@googlegroups.com
i have figured out some steps which were different and working on the tree , but  after the merge they are not working here are the errors i am getting http://dpaste.de/D8E1B/ .


The same mozbadges error popped up i copied the present settings.py as settings1.py then copied the 
settings_local.dist.py settings.py and made changes , the site is working fine , want to know is there  a way to avoid this step also i want to understand why we need this step ? because in the original code this was not required.

once you do the changes i will finalized the changes on wiki there will be  more people joining for dev work.


-Satya
 

satyaakam goswami

unread,
Dec 27, 2012, 3:20:55 AM12/27/12
to fossa...@googlegroups.com
This one was still there i have to do the step of renaming settings.py ans copying the local one as settings.py

-Satya

satyaakam goswami

unread,
Dec 27, 2012, 3:25:25 AM12/27/12
to fossa...@googlegroups.com


This one was still there i have to do the step of renaming settings.py ans copying the local one as settings.py

akash or can anyone confirm the steps on wiki are working fine 

-Satya
 

aka

unread,
Dec 27, 2012, 3:29:01 AM12/27/12
to fossa...@googlegroups.com

sir i ll tell u in 5-15 min
i m setting up d env using dose steps for confirmation

Kantesh Raj

unread,
Dec 27, 2012, 3:52:51 AM12/27/12
to fossa...@googlegroups.com
hey,

I hv attached my terminal command history(history.txt) for setting up Foss Academy development environment.
These steps work fine on my laptop(ubuntu 12.10) and my home desktop(ubuntu 12.04). Anyone please confirm :)

Steps are:
1> mkvirtualenv fossacademy --system-site-packages
3> pip install -r fossacademy/lernanta/requirements/dev.txt
4> workon fossacademy
5> cd /fossacademy/lernanta
6> cp settings_local.dist.py settings.py
7> python manage syncdb
8> python manage runserver
9> pop up a web browser and check site running on localhost:8000
history.txt

aka

unread,
Dec 27, 2012, 5:01:47 AM12/27/12
to fossa...@googlegroups.com


it worked
but i used this link https://github.com/kanteshraj/fossacademy.git
sir ur link is not working update it plz

aka

unread,
Dec 27, 2012, 5:04:11 AM12/27/12
to fossa...@googlegroups.com


kantesh i think we should use the steps on wiki
 dese steps can again create prob
using : cp settings_local.dist.py settings.py
we lose the settings.py

Kantesh Raj

unread,
Dec 27, 2012, 5:25:05 AM12/27/12
to fossa...@googlegroups.com
Hey, 

using : cp settings_local.dist.py settings.py
This step is easy to implement and doesnot required any modification in other file.
 
we lose the settings.py
 
We will not lose anything because we are using git and main repo is on github. 

aka

unread,
Dec 27, 2012, 6:40:21 AM12/27/12
to fossa...@googlegroups.com

 we ll get the installed+=[] error again
but let it be its working now


aka

unread,
Dec 27, 2012, 6:41:19 AM12/27/12
to fossa...@googlegroups.com

we ll get it later
 
Reply all
Reply to author
Forward
0 new messages