On Thu, 6 Jun 2019 at 16:36, Lachlan Musicman wrote:
> Hola,
>
> I seem to remember when list_filter did booleans - does it no longer?
>
Oh. I see that it does - if it's a BooleanField, but not for a method on
the Model class?
--
"The fact that you're still saying something like 'feminism
Hola,
I seem to remember when list_filter did booleans - does it no longer?
Cheers
L.
--
--
"The fact that you're still saying something like 'feminism gone mad'
suggests that feminism hasn't gone mad ENOUGH yet."
Helen Zaltzman / @HelenZaltzman
https://twitter.com/HelenZaltzman/status/106
Hello,
i have a Login Form with 3 Fields: Mandatename, Username and Password. Now
the user login now with a Mandatename. There are a global database where
there are a relation between mandate name and a further database. All
Querys now from this User goes then to this database.
Example:
User
Hi,
Actually I have two forms at two different pages and the second page is the
extension of first form.
Basically the first page has some fields and continue button to the next
page, and next page has some fields and save button.
So once user will click to continue I don't want to save the data
I have a form for a model that contains a ManyToMany relationship to model
B.
By default, manytomany relationship on forms are SelectMuliple and orders
them by alphabetical.
How can I order by if they already have a relation?
In my forms.py
class FormA(forms.ModelForm):
class Meta:
Yes, you can write your own Authentication Backend with your custom
authentication logic
https://docs.djangoproject.com/en/2.2/topics/auth/customizing/
On Wed, Jun 5, 2019 at 8:53 AM michael ababao
wrote:
> I am new to django and i would like to know if it is possible to use the
> django user a
>
> Are you sure?
> My (possibly flawed) understanding is that if you can make the change in
> a single transaction, no-one else can see what is happening until it is
> committed. Effectively that would be an instantaneous change.
> Depending on your data architecture you might need to make some pa
Didn't know it was so simple to do that - I'll make sure to do it.
Thanks
On Wednesday, June 5, 2019 at 9:32:30 AM UTC-6, RyuCoder wrote:
>
> RE : If companies permissions are updated, all of its employees
> permissions needs to be updated as well.
>
> Just make sure to use transaction for this
RE : If companies permissions are updated, all of its employees permissions
needs to be updated as well.
Just make sure to use transaction for this.
e.g.
from django.db import DatabaseError, transaction
with transaction.atomic():
# code to update company permissions
# code to update its
Awesome! Simple and DRY. Thanks!
On Wednesday, June 5, 2019 at 5:07:17 AM UTC-6, RyuCoder wrote:
>
> No need for inherit permissions. As it will increase one more if
> condition to be checked.
> But, whenever a new user is created, you have to read the values from its
> companys permissions an
just create another model in the accounts app and put a one to one key to
the User Model of django.
Import it from settings instead of harcoding it. Give it a relevant
related_name.
Regards,
Chetan Ganji
+91-900-483-4183
ganji.che...@gmail.com
http://ryucoder.in
On Wed, Jun 5, 2019 at 6:23 PM Ga
Hi,
Would you mind giving details why dumping/reloading JSON should not be used
in production (putting aside HA problems, for sure).
TIA
Le 05/06/2019 à 14:01, Devender Kumar a écrit :
Hi,
*It's very complicated with not much explanation in question.*
Its depend on where you want to do this
Hi Bob,
Are you sure aren't Autobahn and/or Twisted (or any another lib) being
upgraded at the same time?
>From the look of the traceback it seems there is a sizeable list of chained
dependencies and it shows clearly cryptography is being actually imported
from autobahn.
On Wed, Jun 5, 2019 at 10
Since the security fix there were 2 problems:
The package cryptography is required (wasn't before updating the pip
package). I'm running Django 2.2.2 with Daphne 2.3.0. See stacktrace:
Loading .env environment variables…
[05/Jun/2019 15:05:43] INFO [django.utils.autoreload:584] Watching for file
I wrote a python script to easily reset a django project. I hope it helps
you.
Just put it in the folder where manage.py file is and run it.
import os
import shutil
from pprint import pprint
folders = []
base_dir = os.path.dirname(os.path.realpath(__file__))
def get_directory_list():
global
Better will be, delete all migrations, and again migrate
On Fri, May 17, 2019, 12:51 PM RAJENDRA MYTHILI 17BIS0120 <
rajendra.mythili2...@vitstudent.ac.in> wrote:
> I'm facing the same issue ... Did you figure out what's wrong?
>
> On Saturday, October 6, 2018 at 6:28:09 AM UTC-7, Jaydeep Borkar
I am new to django and i would like to know if it is possible to use the django
user authentication using a different database for users?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails f
Hy Everyone,
I have a Django website which has multiple apps one of the apps is accounts
app. accounts app is responsible for user sign up and authentication. Now I
want to create a user profile in my website and that user will be the same
across all of my web apps. how can I implement this?
--
The problem with Jaydeep's code is the 'username' field is not getting
populated in the auth_user table. Django auth_user table by default must
have unique usernames. Username is what Django authenticates to by default.
Jaydeep was able to enter the initial user with email, firstname and
lastn
In login function, could you try password =request.POST['password1']
You have used ['password']
On Wed, 5 Jun 2019, 17:22 sahukara harish,
wrote:
> Hi, to all can any one help me to rectify this error
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django u
Hi,
*It's very complicated with not much explanation in question.*
Its depend on where you want to do this process Development or Production.
If it is development then and not holding a very large amount of data.
then its not very complicated
dump JSON > change database engine > load JSON.
If its
6bbb6b5b655b5556555tgt
On Wed 5 Jun, 2019, 3:17 PM Sipum Mishra, wrote:
> Plz show your code otherwise search your total error line in Google you
> can find it.
> Always try to paste error codes so that it will b easy to find out error.
>
> Thanks.
>
> On Wed, 5 Jun, 2019, 3:12 PM RAJA MISHR
No need for inherit permissions. As it will increase one more if condition
to be checked.
But, whenever a new user is created, you have to read the values from its
companys permissions and set them for the current user.
If companies permissions are updated, all of its employees permissions
needs t
Plz show your code otherwise search your total error line in Google you can
find it.
Always try to paste error codes so that it will b easy to find out error.
Thanks.
On Wed, 5 Jun, 2019, 3:12 PM RAJA MISHRA,
wrote:
> Name error : name 'django' is not defined in one of my app
> Plzz anyone expl
Name error : name 'django' is not defined in one of my app
Plzz anyone explain how to fix this
also how to use django.setup()
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
25 matches
Mail list logo