About 6,380,000 results
Open links in new tab
  1. How to change the Django default runserver port? - Stack Overflow

    70 As of Django 1.9, the simplest solution I have found (based on Quentin Stafford-Fraser's solution) is to add a few lines to manage.py which dynamically modify the default port number …

  2. django - What is reverse ()? - Stack Overflow

    Jun 28, 2012 · Given a url pattern, Django uses url () to pick the right view and generate a page. That is, url--> view name. But sometimes, like when redirecting, you need to go in the reverse …

  3. django abstract models versus regular inheritance - Stack Overflow

    Besides the syntax, what's the difference between using a django abstract model and using plain Python inheritance with django models? Pros and cons? UPDATE: I think my question was …

  4. How to access the local Django webserver from outside world

    I realize the Django webserver is not a production server, but it's important for me for testing purposes to be able to access it from the outside world -- i.e. not from a web browser on the …

  5. python - What is the difference between Django and Django Rest ...

    Django is the web development framework in python whereas the Django Rest Framework is the library used in Django to build Rest APIs. Django Rest Framework is especially designed to …

  6. How to get all fields for a Django model? - Stack Overflow

    Given a Django model, I'm trying to list all of its fields. I've seen some examples of doing this using the _meta model attribute, but doesn't the underscore in front of meta indicate that the …

  7. python - Django TemplateDoesNotExist? - Stack Overflow

    Dec 18, 2009 · My local machine is running Python 2.5 and Nginx on Ubuntu 8.10, with Django builded from latest development trunk. For every URL I request, it throws: …

  8. django - Select distinct values from a table field - Stack Overflow

    Mar 18, 2010 · I'm struggling getting my head around the Django's ORM. What I want to do is get a list of distinct values within a field on my table .... the equivalent of one of the following: …

  9. python - Connecting Django with MSSQL server - Stack Overflow

    Using mssql-django, we can connect Django to MSSQL (SQL Server) with Windows Authentication and SQL Server Authentication. I use SQL Server 2019 Express. With …

  10. Creating a JSON response using Django and Python

    Its very convenient with Django version 1.7 or higher as you have the JsonResponse class, which is a subclass of HttpResponse. from django.http import JsonResponse