questions/python
Hi @There, As the path is fixed, use ...READ MORE
Hello @Alisha , Do print(func(x)) and find out what's ...READ MORE
Hello @kartik, Inside a manager: def delete_everything(self): ...READ MORE
Hello @kartik, Text printed to stderr will show ...READ MORE
Hello @kartik, You could do this: import itertools ids = ...READ MORE
Hello @kartik, My settings.py did not have a ...READ MORE
Hello @kartik, This is a helper to set ...READ MORE
Hello @kartik, First make sure you have SessionMiddleware and AuthenticationMiddleware middlewares added ...READ MORE
Hello @kartik, You cannot access the request.user directly. You need ...READ MORE
Hello @kartik, Try this: from south.db import db from south.v2 ...READ MORE
Hello @kartik, You can try this: from django.views.generic import ...READ MORE
Hello @kartik, I usually have one settings file ...READ MORE
Hey, @There, This kind of error happens once ...READ MORE
Hello, @Pawan, The as_matrix method is deprecated since 0.23.0, so ...READ MORE
Hi@Nilesh, You have created two empty lists. And ...READ MORE
Hi@Nilesh, You created two empty lists. And in ...READ MORE
Hello @shamsher, First try to check what version ...READ MORE
Hello @ nishit, Indentation means the space from margin to ...READ MORE
Hello @bhawna, You can encapsulate all the logic ...READ MORE
Hello @kartik, To check for permissions in templates, ...READ MORE
Hello @kartik, Try this: records = query1 | query2 If ...READ MORE
Hello @kartik, To drop the database and run syncdb again. ...READ MORE
Hello @kartik, Python you can write your own ...READ MORE
Hello @kartik, To trigger a download you need ...READ MORE
Hello @kartik, If you want two objects with ...READ MORE
Hello @kartik, Within your template, you can use ...READ MORE
Hello @kartik, The following code works: >>> from django.template ...READ MORE
Hello @kartik, The problem was that test couldn't find ...READ MORE
Hello @kartik, simplejson and json don't work with django objects well. Django's ...READ MORE
Hello @kartik, You can fetch the URL in ...READ MORE
Hello @kartik, If you still need to server ...READ MORE
Hello @kartik, Errors are stored in the nginx ...READ MORE
Hello @kartik, Use handy request.build_absolute_uri() method on request, pass it ...READ MORE
Hello @kartik, Setting readonly on a widget only makes the ...READ MORE
Hello @kartik, I usually use a dictionary, not ...READ MORE
Hello @kartik, Just try this: python manage.py changepassword <user_name> Hope ...READ MORE
Hello @kartik, You could do this: Name.objects.exclude(alias__isnull=True) If you need ...READ MORE
Hello @kartik, There are a bunch of ways ...READ MORE
Hello @kartik, According to pip documentation example 3: pip install --upgrade ...READ MORE
Hello @kartik, When a URL is like domain/search/?q=haha, you ...READ MORE
Hello @kartik, You need Django version 2 pip install ...READ MORE
Hello @kartik, In Python 3.0 to Python 3.5.x, json.loads() will ...READ MORE
Hello @kartik, $python manage.py syncdb is deprecated and not ...READ MORE
Hello @kartik, Upgrading the packages will resolve the ...READ MORE
Hello @kartik, You can do that by following: serializers.py class ...READ MORE
Hello @kartik, find_spec isn't available in Python 3.2.3; it ...READ MORE
Hello @kartik, If you want to import reverse, ...READ MORE
Hello, @Pooja, Even I got the same issue, ...READ MORE
Hello @Dilpreet , Have you tried updating pip version? ...READ MORE
Hello @kartik, Don't use add for strings, you should define ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.