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

localhost could not be found #181

Open
vsmay98 opened this issue Apr 23, 2020 · 5 comments
Open

localhost could not be found #181

vsmay98 opened this issue Apr 23, 2020 · 5 comments

Comments

@vsmay98
Copy link

vsmay98 commented Apr 23, 2020

image

after running ./manage.py runserver this error is shown

@Mte90
Copy link

Mte90 commented Jan 27, 2022

Same issue, also other endpoints doesn't work.
I guess that the documentation is incomplete.

@Mte90
Copy link

Mte90 commented Jan 27, 2022

After a bit of investigation seems that is required to create 2 files inside the etc folder in the app folder.
I see that I changed in the Makefile the APP_NAME with the name I gave to venv, run again the make install-conf and now is working.

@Mte90
Copy link

Mte90 commented Jan 27, 2022

With that change the config are loaded but it isn't work anyway...

@smirolo
Copy link
Contributor

smirolo commented Jan 28, 2022

I tried the commands in the README file in a fresh empty directory Today. Here is what I ran:

git clone https://github.com/djaodjin/djaoapp.git
cd djaoapp
python -m venv installTop
source installTop/bin/activate
pip install -r requirements.txt
make install-conf
make build-assets
python manage.py migrate --run-syncdb
python manage.py createsuperuser
python manage.py runserver

The output of the runserver command is:

config loaded from '/build/tmp/djaoapp/installTop/etc/djaoapp/credentials'
config loaded from '/build/tmp/djaoapp/installTop/etc/djaoapp/site.conf'
Use Jinja2 templates engine.
config loaded from '/build/tmp/djaoapp/installTop/etc/djaoapp/credentials'
config loaded from '/build/tmp/djaoapp/installTop/etc/djaoapp/site.conf'
Use Jinja2 templates engine.
INFO - - [28/Jan/2022:06:33:39 +0000] Watching for file changes with StatReloader "-"
Performing system checks...

System check identified no issues (0 silenced).
January 28, 2022 - 06:33:39
Django version 2.2.25, using settings 'djaoapp.settings'
Starting development server at http://127.0.0.1:8000/

When I browse http://127.0.0.1:8000/ or http://localhost:8000/ I see the following:

Screen Shot 2022-01-27 at 10 39 22 PM

What Operating System are you using? Which version of Python?

Thanks.

@Mte90
Copy link

Mte90 commented Jan 28, 2022

In this way works.
The difference I see with my tests:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants