Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API doesn't work without a .env file #72

Closed
cadecairos opened this issue Feb 14, 2017 · 2 comments
Closed

API doesn't work without a .env file #72

cadecairos opened this issue Feb 14, 2017 · 2 comments

Comments

@cadecairos
Copy link
Contributor

I'm setting this up locally to do some testing, and I'm having some difficulty.

OS: Ubuntu 16.10
Python: 3.5

I ran:

  1. pip install -r requirements.txt
  2. python manage.py migrate
  3. python manage.py runserver

What I end up seeing is this error in console:
/home/cade/.Envs/pulse/lib/python3.5/site-packages/environ/environ.py:617: UserWarning: Error reading /home/cade/code/network-pulse-api/.env - if you're not configuring your environment separately, check this.

And trying to load the admin tool results in a 400 response code.

@Pomax
Copy link
Contributor

Pomax commented Feb 15, 2017

That's definitely bad, although I should also point out it looks like you forgot a python manage.py makemigrations between steps 1 and 2.

@Pomax
Copy link
Contributor

Pomax commented Apr 4, 2022

Closing this issue due to having gone stale - if this is still something we want to do, let's file a new issue with all the information necessary for triaging.

@Pomax Pomax closed this as completed Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants