Code Monkey home page Code Monkey logo

Comments (16)

fredfalcon avatar fredfalcon commented on July 26, 2024

From a quick look I would say to try 'pip install gunicorn' and make sure Postgres is installed and the pg_config tool is available on the path.

from mendel.

chackerian avatar chackerian commented on July 26, 2024

I did both those things and got the server running but now getting "TemplateDoesNotExist at /api/" when I go to http://0.0.0.0:5000/api/ in browser

from mendel.

expandrew avatar expandrew commented on July 26, 2024

@chackerian

For the issue with the setup script, it looks like the Postgres command line tools might not be available on your $PATH

If you're using Postgres.app, make sure the command line tools are set up. Check the directions in the link here: http://postgresapp.com/documentation/cli-tools.html

Sounds like you have the server running now, though - what happens when you go to http://localhost:5000/ ?

from mendel.

chackerian avatar chackerian commented on July 26, 2024

I get "TemplateDoesNotExist at /"

from mendel.

chackerian avatar chackerian commented on July 26, 2024

I can paste the console message too if that is helpful.

from mendel.

expandrew avatar expandrew commented on July 26, 2024

I'm suspecting that the collectstatic command didn't run properly - try killing heroku local and starting it again

from mendel.

chackerian avatar chackerian commented on July 26, 2024

ok. Getting same error.

from mendel.

chackerian avatar chackerian commented on July 26, 2024

I was using sudo. Tried without it and it seems to be working. Now I just need login credentials.

from mendel.

expandrew avatar expandrew commented on July 26, 2024

Ah, good to know 👍

Let us know if you encounter other issues. Happy to help.

from mendel.

expandrew avatar expandrew commented on July 26, 2024

A super user is automatically created in the setup script with the username admin and the password architizer

from mendel.

chackerian avatar chackerian commented on July 26, 2024

oh ok, thanks

from mendel.

chackerian avatar chackerian commented on July 26, 2024

Actually I still need more help. Login isn't working.

from mendel.

expandrew avatar expandrew commented on July 26, 2024

If the login isn't working, you can try re-running the createsuperuser command in another window:

heroku local:run python manage.py createsuperuser

and follow the prompts to make a super user to use to access the app

The Django admin panel runs at http://localhost:5000/admin

Also, front end development for the project happens with a slightly different build pipeline - to run the front end for development, you have to run gulp serve from the /mendel/angular directory - this starts up a Browsersync server on http://localhost:3000/ so when you make changes to the front end files, the browser will update automatically.

from mendel.

chackerian avatar chackerian commented on July 26, 2024

I got it to work by adding another user.

from mendel.

picturedots avatar picturedots commented on July 26, 2024

@expandrew It turns out that he needed to run Postgres.app -- the instructions say that you have to install it, but don't explicitly say that is has to be running when you run the installation script. But, you do.

from mendel.

expandrew avatar expandrew commented on July 26, 2024

@picturedots Good to know - I've added a line to the README to clarify

from mendel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.