olasitarska on master
Making post_detail.html more co… Merge pull request #362 from ve… (compare)
bmispelon on master
Provide alternative runserver c… Merge pull request #359 from Al… (compare)
bmispelon on master
fixing broken github link Merge pull request #358 from gs… (compare)
from django.contrib import admin from django.urls import path, include # ← This line should make `include` available. urlpatterns = [ path('admin/', admin.site.urls), path('', include('blog.urls')), ]
There's some instructions above that code listing towards that end:
[…] You will also need to change the from
django.urls…line because we are using the
includefunction here, so you will need to add that import to the line.
(Maybe that could be worded more clearly.)
Create a file .env at the 'root of your project' and add the following property in it: may i know what this line means in single quotes
root directory of a project is the directory which contains all the other files and folders of the project in it. For example:
myProject - app1 - - file1 - - file2 - app2 - - file1 - - file2
If this is the structure of your project,
myProject is your root directory. So you have to put your .env file here:
myProject - .env - app1 - - file1 - - file2 - app2 - - file1 - - file2
To add a property in the .env file just do:
property_name = <value>
when I'm trying to generate random string it throws me a error can anyone look into screenshot above help me out
You have to show the code you are using to generate a random string. It's difficult to understand the problem using just an error message
Hello! I'm trying out the django tutorial and i'm at the deployment part, when i type the command " git push -u origin main " i get:
fatal: unable to access 'https://github.com/ayamqd/my-first-blog.git/': Failed to connect to github.com port 443 after 21123 ms: Timed out
can anyone help me with this? i think it's a proxy problem depending on what i found on google and since i'm on my work computer, but i don't know how to fix it
I'm just starting with Django and trying to make friends with it 😅
Now I'm having trouble with the CSS.
Most of the styling works, but there are some details that don't, like the navbar, the "collapse" effect opens but doesn't close, and there is a carousel div that isn't visible.
I had created my web design apart, to make sure it worked, and then incorporated it into my Django project.
I would appreciate advice from you.
Hey guys! I've been doing the tutorial for a few weeks and I stopped at this error:
WARNING: Package(s) not found: django
Traceback (most recent call last):
File "/home/olgaroschel/.local/bin/pa_autoconfigure_django.py", line 54, in <module>
File "/home/olgaroschel/.local/bin/pa_autoconfigure_django.py", line 38, in main
File "/home/olgaroschel/.local/lib/python3.6/site-packages/pythonanywhere/django_project.py", line 97, in update_settings_file
new_django = version.parse(self.virtualenv.get_version("django")) >= version.parse("3.1")
File "/home/olgaroschel/.local/lib/python3.6/site-packages/pythonanywhere/virtualenvs.py", line 32, in get_version
output = subprocess.check_output(commands).decode()
File "/usr/local/lib/python3.6/subprocess.py", line 356, in check_output
File "/usr/local/lib/python3.6/subprocess.py", line 438, in run
subprocess.CalledProcessError: Command '['/home/olgaroschel/.virtualenvs/olgaroschel.pythonanywhere.com/bin/pip', 'show', 'django']' retur
ned non-zero exit status 1.
It's in the Deploy part
how can I solve?
migratecreate the corresponding table in the MySQL database.