Fork, Commit, Merge - Easy Issue (Django) #725
Labels
django
easy
first-contributor
first-contributors
good first issue
Good for newcomers
help wanted
Extra attention is needed
python
up-for-grabs
Fork, Commit, Merge - Easy Issue (Django)
Create a simple Django view that returns a "Hello, World!" message
Note: You don't have ask permission to start solving the issue or get assigned, since these issues are supposed to be always open for new contributors. The actions-user bot will reset the file back to previous state for the next contributor after your commit is merged. So you can just simply start working with the issue right away!
How to get started
Start by opening the
tasks/django/easy
directory from the root of the project.Then open
hello_world/hello_world/urls.py
andhello_world/hello_world_app/views.py
files and start working on your solution!Notice that there are
hello_world
andhello_world_app
directories inside ofhello_world
directory which can make it a bit confusing. Make sure you are working with right folders and files!Description
Your task is to create a simple Django view that returns a "Hello, World!" message to the browser.
/hello
path inhello_world/hello_world/urls.py
file similar as the/admin
path is implemented.hello_world/hello_world_app/views.py
file, which will return the string "Hello, World!".How to Run:
tasks/django/easy/hello_world
directory in your Terminal.python manage.py runserver
http://127.0.0.1:8000/hello/
in your web browser.Before making a Pull request:
SECRET_KEY
in thetasks/django/easy/hello_world/hello_world/settings.py
file. Otherwise when making the pull request, security checks will notice the secret and fail, which is not crucial because it can still be merged, but it just makes the Pull request experience a bit more enjoyable..env
file for storing secret keys and passwords etc in environment variables. In this project there is no need for that, since this is supposed to be just for educational purposes.To work with this issue, you need to have Python and Django installed to your local machine.
Check out README.md for more instructions of installing Python and Django. You can also find there instructions of how to make a pull request.
Feel free to ask any questions here if you have some problems!
Also, kindly give this project a star to enhance its visibility for new developers!
The text was updated successfully, but these errors were encountered: