Category "django"

How do I install an old version of Django on virtualenv?

I want to install some specific version of a package (in this case Django) inside the virtual environment. I can't figure it out. I'm on Windows XP, and I creat

django: invalid syntax path('details/<int:id>/', views.details, name='details')

views.py file def details(request, id): post = Posts.objects.get(id=id) context = { 'post': post } return render(request, 'posts/details.html', context)

How to take a zipfile as a File object in django?

I have a folder named 'src' of which I create a zip file named zf. I want to pass zf as a FileField object to newobj.fd. import zipfile from django.core.files i

How to take a zipfile as a File object in django?

I have a folder named 'src' of which I create a zip file named zf. I want to pass zf as a FileField object to newobj.fd. import zipfile from django.core.files i

python: can't open file 'manage.py': [Errno 2] No such file or directory

I have created a Django project "post_blog" in which I have created an app "blogs". C:Users/arpchauh/PycharmProjects/post_blog/blogs>python manage.py runser

Django models | get specific columns

Is there a way to filter and get only specific columns? For example, get all entries with the column first_name.

Django models | get specific columns

Is there a way to filter and get only specific columns? For example, get all entries with the column first_name.

Django models | get specific columns

Is there a way to filter and get only specific columns? For example, get all entries with the column first_name.

Django models | get specific columns

Is there a way to filter and get only specific columns? For example, get all entries with the column first_name.

Django models | get specific columns

Is there a way to filter and get only specific columns? For example, get all entries with the column first_name.