The-WebOps-Club / fest-api

An API implementation for Saarang Shaastra like fests, including ERP and Mainsite and Mobile interface
12 stars 11 forks source link

Setting up localhost #100

Closed akshay-balaji closed 10 years ago

akshay-balaji commented 10 years ago

I've installed all the required pacakges, used the syncdb and migrate commands as well. When i set up the server and run localhost:8000. I get the error:

OSError at / [Errno 2] No such file or directory: '/home/akshay/GitHub/fest-api-master/path_to_media'

After i comment out django.contrib.staticfiles.finders.DefaultStorageFinder in global_settings.py, i get:

AttributeError at /login/ 'NoneType' object has no attribute 'coord_relations' Exception Location: /home/akshay/GitHub/fest-api-master/misc/utils.py in global_context, line 43.

Any advice?

AbdealiLoKo commented 10 years ago

Utture, did you update the readme?

Check an earlier issue by Akshay utture. Read and follow that On Jun 28, 2014 1:27 PM, "Akshay B" notifications@github.com wrote:

I've installed all the required pacakges, used the syncdb and migrate commands as well. When i set up the server and run localhost:8000. I get the error:

OSError at / [Errno 2] No such file or directory: '/home/akshay/GitHub/fest-api-master/path_to_media'

After i comment out django.contrib.staticfiles.finders.DefaultStorageFinder in global_settings.py, i get:

AttributeError at /login/ 'NoneType' object has no attribute 'coord_relations' Exception Location: /home/akshay/GitHub/fest-api-master/misc/utils.py in global_context, line 43.

Any advice?

Reply to this email directly or view it on GitHub https://github.com/The-WebOps-Club/fest-api/issues/100.

akshayutture commented 10 years ago

Yes I updated the readme. . . Balaji, Have you populated the database using python manage.py populate_db?

akshay-balaji commented 10 years ago

Yes. I've done everything possible from the Readme.md file

Edit: IF it is any help, the missing file/directory "path_to_media" is listed under MEDIA_ROOT

akshayutture commented 10 years ago

balaji give me you email-id na

akshay-balaji commented 10 years ago

akshay.007.akshay@gmail.com

AbdealiLoKo commented 10 years ago

You need to edit the settings.py with folder paths that exist. On Jun 28, 2014 2:20 PM, "Akshay B" notifications@github.com wrote:

Yes. I've done everything possible from the Readme.md file

Reply to this email directly or view it on GitHub https://github.com/The-WebOps-Club/fest-api/issues/100#issuecomment-47421989 .

Phoenix25 commented 10 years ago

why are you commenting out static files finder? you're supposed to set your settings variable to a proper directory and create an empty directory at this location. Is that mentioned in the readme?

On Sat, Jun 28, 2014 at 2:44 PM, Akshay B notifications@github.com wrote:

akshay.007.akshay@gmail.com

— Reply to this email directly or view it on GitHub https://github.com/The-WebOps-Club/fest-api/issues/100#issuecomment-47422416 .

akshayutture commented 10 years ago

I had put that in the readme because it was causing an error and after removing it my setup worked fine. . Balaji, try was sai praveen says

Phoenix25 commented 10 years ago

@Akshay_B check for a settings variable in your settings.py that says 'path_to_media', change it to 'media' or something and if it dosen't exist make an empty folder

On Sat, Jun 28, 2014 at 4:51 PM, akshayutture notifications@github.com wrote:

I had put that in the readme because it was causing an error and after removing it my setup worked fine. . Balaji, try was sai praveen says

— Reply to this email directly or view it on GitHub https://github.com/The-WebOps-Club/fest-api/issues/100#issuecomment-47424899 .

AbdealiLoKo commented 10 years ago

@akshay-balaji : If you face any problem, edit the readme and update it.

akshay-balaji commented 10 years ago

Okay... But i've still not have been able to get past the second error:

AttributeError at /login/

'NoneType' object has no attribute 'coord_relations'

Request Method:GETRequest URL:http://localhost:8000/login/?next=/Django Version:1.6.5Exception Type:AttributeErrorException Value:

'NoneType' object has no attribute 'coord_relations'

Exception Location:/home/akshay/GitHub/fest-api-master/misc/utils.py in global_context, line 43

On Sat, Jun 28, 2014 at 7:44 PM, AbdealiJK notifications@github.com wrote:

@akshay-balaji https://github.com/akshay-balaji : If you face any problem, edit the readme and update it.

— Reply to this email directly or view it on GitHub https://github.com/The-WebOps-Club/fest-api/issues/100#issuecomment-47428500 .

AbdealiLoKo commented 10 years ago

So, it seems you have logged in with the root account. And hence you do not have the ERPProfile model associated with the User account. Hence it says it is None type.

On Sat, Jun 28, 2014 at 7:47 PM, Akshay B notifications@github.com wrote:

Okay... But i've still not have been able to get past the second error:

AttributeError at /login/

'NoneType' object has no attribute 'coord_relations'

Request Method:GETRequest URL:http://localhost:8000/login/?next=/Django Version:1.6.5Exception Type:AttributeErrorException Value:

'NoneType' object has no attribute 'coord_relations'

Exception Location:/home/akshay/GitHub/fest-api-master/misc/utils.py in global_context, line 43

On Sat, Jun 28, 2014 at 7:44 PM, AbdealiJK notifications@github.com wrote:

@akshay-balaji https://github.com/akshay-balaji : If you face any problem, edit the readme and update it.

Reply to this email directly or view it on GitHub < https://github.com/The-WebOps-Club/fest-api/issues/100#issuecomment-47428500>

.

Reply to this email directly or view it on GitHub https://github.com/The-WebOps-Club/fest-api/issues/100#issuecomment-47428567 .

akshay-balaji commented 10 years ago

Is it like a default user? Because the home page didn't load...

AbdealiLoKo commented 10 years ago

Open localhost:8000/admin

Does it give you a login screen ? If you ever logged into this, means you logged into the site also. Logout from here and then try

On Sat, Jun 28, 2014 at 8:39 PM, Akshay B notifications@github.com wrote:

Is it like a default user? Because the home page didn't load...

Reply to this email directly or view it on GitHub https://github.com/The-WebOps-Club/fest-api/issues/100#issuecomment-47429776 .

AbdealiLoKo commented 10 years ago

updates ? i had asked you to do it last monday ...

akshay-balaji commented 10 years ago

No, the admin isnt logged in, i've even tried resetting the database/ new superuser. Nothing seems to be working. Sorry for the delay... modem issues still persis, new one in 2 days. :|.

akshay-balaji commented 10 years ago

any ideas?

AbdealiLoKo commented 10 years ago

Nope, are you in Insti? Is there anyone who knows django around you On Jul 1, 2014 11:37 PM, "Akshay B" notifications@github.com wrote:

any ideas?

Reply to this email directly or view it on GitHub https://github.com/The-WebOps-Club/fest-api/issues/100#issuecomment-47690225 .

akshay-balaji commented 10 years ago

Unfortunately no, i'm still in bangalore. To clarify things furthur, the mysql "root" user has nothing to do with localhost right?

AbdealiLoKo commented 10 years ago

You will have to use mysql to run django ... so, youll need a username and password which u put in settings file. @Saipraveen : help him no :| He's been setting up the erp for 2.5 weeks

On Thu, Jul 3, 2014 at 4:23 PM, Akshay B notifications@github.com wrote:

Unfortunately no, i'm still in bangalore. To clarify things furthur, the mysql "root" user has nothing to do with localhost right?

Reply to this email directly or view it on GitHub https://github.com/The-WebOps-Club/fest-api/issues/100#issuecomment-47892410 .

akshay-balaji commented 10 years ago

I've been doing just that... i just wanted to rule out that "root" user for mysql wasnt the reason for the error... And yes, i do need some help setting it up. :/

On Fri, Jul 4, 2014 at 12:39 PM, AbdealiJK notifications@github.com wrote:

You will have to use mysql to run django ... so, youll need a username and password which u put in settings file. @Saipraveen : help him no :| He's been setting up the erp for 2.5 weeks

On Thu, Jul 3, 2014 at 4:23 PM, Akshay B notifications@github.com wrote:

Unfortunately no, i'm still in bangalore. To clarify things furthur, the mysql "root" user has nothing to do with localhost right?

Reply to this email directly or view it on GitHub < https://github.com/The-WebOps-Club/fest-api/issues/100#issuecomment-47892410

.

— Reply to this email directly or view it on GitHub https://github.com/The-WebOps-Club/fest-api/issues/100#issuecomment-48014667 .