RSS

Posts in 2021

  • Most votes on docker questions 2

    May 01, 2021 in FAQ

    Most votes on docker questions 2. #11 How to remove old Docker containers #12 How to force Docker for a clean build of an image #13 What is the difference between a Docker image and a container? #14 How to deal with persistent storage (e.g. databases) in Docker #15 How to list containers in Docker #16 How do I pass environment variables to Docker containers? #17 Where are Docker images stored on the host machine? #18 How does one remove a Docker image? #19 How to remove old and unused Docker images #20 Exploring Docker container's file system

    Read all the top votes questions and answers in a single page. #11: How to remove old Docker containers (Score: 1303) Created: 2013-06-21 Last updated: 2017-05-23 Tags: docker This question is related to …

    Read more

  • Most votes on docker questions 10

    May 01, 2021 in FAQ

    Most votes on docker questions 10. #91 How to start a stopped Docker container with a different command? #92 Why docker container exits immediately #93 How to generate a Dockerfile from an image? #94 How to analyze disk usage of a Docker container #95 How to share my Docker-Image without using the Docker-Hub? #96 Get environment variable value in Dockerfile #97 Can Windows Containers be hosted on linux? #98 Connecting to Postgresql in a docker container from outside #99 docker run <IMAGE> <MULTIPLE COMMANDS> #100 How to create named and latest tag in Docker?

    Read all the top votes questions and answers in a single page. #91: How to start a stopped Docker container with a different command? (Score: 301) Created: 2015-09-02 Tags: docker I would like to start a stopped Docker container with a different …

    Read more

  • Most votes on docker questions 1

    May 01, 2021 in FAQ

    Most votes on docker questions 1. #1 How is Docker different from a virtual machine? #2 What is the difference between the 'COPY' and 'ADD' commands in a Dockerfile? #3 Should I use Vagrant or Docker for creating an isolated environment? #4 Docker: Copying files from Docker container to host #5 What is the difference between CMD and ENTRYPOINT in a Dockerfile? #6 From inside of a Docker container, how do I connect to the localhost of the machine? #7 How to copy files from host to Docker container? #8 How to copy Docker images from one host to another without using a repository #9 How to get a Docker container's IP address from the host #10 How do I get into a Docker container's shell?

    Read all the top votes questions and answers in a single page. #1: How is Docker different from a virtual machine? (Score: 3929) Created: 2013-04-16 Last updated: 2018-08-28 Tags: docker, containers, virtual-machine, virtualization I keep rereading …

    Read more

  • Most votes on django questions 9

    May 01, 2021 in FAQ

    Most votes on django questions 9. #81 Having Django serve downloadable files #82 What is reverse()? #83 Django MEDIA_URL and MEDIA_ROOT #84 How do I replace whitespaces with underscore? #85 Using Python's os.path, how do I go up one directory? #86 Django - what is the difference between render(), render_to_response() and direct_to_template()? #87 How to set a value of a variable inside a template code? #88 Django Template Variables and Javascript #89 How do I filter ForeignKey choices in a Django ModelForm? #90 Best practices for adding .gitignore file for Python projects?

    Read all the top votes questions and answers in a single page. #81: Having Django serve downloadable files (Score: 255) Created: 2009-07-20 Last updated: 2020-02-13 Tags: python, django, django-authentication I want users on the site to be able to …

    Read more

  • Most votes on django questions 8

    May 01, 2021 in FAQ

    Most votes on django questions 8. #71 Find object in list that has attribute equal to some value (that meets any condition) #72 How do I get the object if it exists, or None if it does not exist? #73 Django gives Bad Request (400) when DEBUG = False #74 Dynamically adding a form to a Django formset #75 How to use MySQLdb with Python and Django in OSX 10.6? #76 Django set default form values #77 You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application #78 Django template how to look up a dictionary value with a variable #79 What's the best solution for OpenID with Django? #80 Cron and virtualenv

    Read all the top votes questions and answers in a single page. #71: Find object in list that has attribute equal to some value (that meets any condition) (Score: 278) Created: 2011-08-19 Last updated: 2020-07-30 Tags: python, django, list I’ve …

    Read more

  • Most votes on django questions 7

    May 01, 2021 in FAQ

    Most votes on django questions 7. #61 Django - iterate number in for loop of a template #62 Numeric for loop in Django templates #63 How do I clone a Django model instance object and save it to the database? #64 How do I filter query objects by date range in Django? #65 How to execute a Python script from the Django shell? #66 How do I integrate Ajax with Django applications? #67 Django: Display Choice Value #68 DatabaseError: current transaction is aborted, commands ignored until end of transaction block? #69 How to check if a user is logged in (how to properly use user.is_authenticated)? #70 Django development IDE

    Read all the top votes questions and answers in a single page. #61: Django - iterate number in for loop of a template (Score: 295) Created: 2012-07-14 Tags: django, for-loop, django-templates I have the following for loop in my django template …

    Read more

  • Most votes on django questions 6

    May 01, 2021 in FAQ

    Most votes on django questions 6. #51 Django Model() vs Model.objects.create() #52 How to manage local vs production settings in Django? #53 NumPy array is not JSON serializable #54 When saving, how can you check if a field has changed? #55 Is it bad to have my virtualenv directory inside my git repository? #56 Django datetime issues (default=datetime.now()) #57 Favorite Django Tips & Features? #58 Django auto_now and auto_now_add #59 Setting DEBUG = False causes 500 Error #60 AngularJS with Django - Conflicting template tags

    Read all the top votes questions and answers in a single page. #51: Django Model() vs Model.objects.create() (Score: 323) Created: 2014-10-31 Last updated: 2019-06-14 Tags: python, django, database, django-models What it the difference between …

    Read more

  • Most votes on django questions 5

    May 01, 2021 in FAQ

    Most votes on django questions 5. #41 Django CharField vs TextField #42 How to perform OR condition in django queryset? #43 (13: Permission denied) while connecting to upstream:[nginx] #44 Can "list_display" in a Django ModelAdmin display attributes of ForeignKey fields? #45 How to delete a record in Django models? #46 How to get the current URL within a Django template? #47 Getting the SQL from a Django QuerySet #48 How to convert JSON data into a Python object #49 Convert Django Model object to dict with all of the fields intact #50 How do I get user IP address in django?

    Read all the top votes questions and answers in a single page. #41: Django CharField vs TextField (Score: 344) Created: 2011-09-08 Last updated: 2017-09-15 Tags: sql, django, database, storage What is the difference between CharField() and …

    Read more

  • Most votes on django questions 4

    May 01, 2021 in FAQ

    Most votes on django questions 4. #31 Where can I find the error logs of nginx, using FastCGI and Django? #32 Can I access constants in settings.py from templates in Django? #33 How to query as GROUP BY in django? #34 RuntimeWarning: DateTimeField received a naive datetime #35 How do I do an OR filter in a Django query? #36 How can I see the raw SQL queries Django is running? #37 CORS: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true #38 django order_by query set, ascending and descending #39 What's the difference between select_related and prefetch_related in Django ORM? #40 How can I filter a Django query with a list of values?

    Read all the top votes questions and answers in a single page. #31: Where can I find the error logs of nginx, using FastCGI and Django? (Score: 395) Created: 2009-11-10 Last updated: 2020-07-11 Tags: django, nginx, fastcgi, error-log I’m using …

    Read more

  • Most votes on django questions 3

    May 01, 2021 in FAQ

    Most votes on django questions 3. #21 No module named pkg_resources #22 Extending the User model with custom fields in Django #23 In a Django form, how do I make a field readonly (or disabled) so that it cannot be edited? #24 What's the difference between django OneToOneField and ForeignKey? #25 How to define two fields "unique" as couple #26 No module named MySQLdb #27 Where does pip install its packages? #28 How can I get the full/absolute URL (with domain) in Django? #29 'pip' is not recognized as an internal or external command #30 Why does DEBUG=False setting make my django Static Files Access fail?

    Read all the top votes questions and answers in a single page. #21: No module named pkg_resources (Score: 483) Created: 2011-09-16 Last updated: 2019-03-20 Tags: python, django, virtualenv, setuptools, pip I’m deploying a Django app to a dev …

    Read more