There is none - all I can see is that the logging I placed att he very end
of the post_save method logs, but the logger.debug('
SupportPingMutation:post-save') that I placed after the .save() never runs.
After the channels message, the request is stale, and just freezes the
server.
On Monday,
Hi Melvyn,
Finally i had breakthrough and saw the root cause.
The issue is that i haven't defined any default value for this Custom field
in the model class.
As per Django 1.10 documentation, the default value of Boolean Field is
None if "default" value is not defined. Hence "None" value.
Tho
I have to make a parent relation between two people (brother/sister,
father/mother, etc) in my projec.
I have a Person class and a child class named Firefighter. What I need it's
to indicate the parent relation between the selected Firefighter and the
selected Person, for that I have two dropdown i
hey im trying to import one set of info from a database based on the name
of something else if that makes sense.
basically in the database its setup like this:
food-
restaurant-name products type of service
On 20/06/2017 2:22 AM, 'Victor Hooi' via Django users wrote:
If you go down the user-profiles route - how would you handle managing
each of those via the Django Admin?
I use group permissions to reveal or hide models in the Admin main menu.
I use admin, editor, author and for example authors
That was it. thanks Andreas.
--
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 an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to dja
But if I use the pattern:
*urlpatterns = [ *
*url(r'^blank/.*$', views.BlankMore, name='blankMore'),*
*]*
I can enter:
localhost:8000/uA/blank/
and the pattern will match, but if I enter:
localhost:8000/uA/blank/abc
I get an error message: "Page not found (404)"
I could be doi
Hello,
If I mangle the CSRF token in the Django login form, and then try to login,
I get a:
HTTP 403 CSRF verification failed. Request aborted
which is expected.
This then will generate an email that is sent to the admins but the email
contains the password from the login form in clear t
I'm trying to write a simple Django app and I have encountered a few
problems handling URL patterns. Any help will be appricated.
Problem 1
My first problem is that I would like to parse a url that is known up until
the last part of the URL. So for example, if I use the following
On Monday 19 June 2017 04:00:42 Priyanka Thakur wrote:
> On Monday, 19 June 2017 16:05:06 UTC+5:30, m712 - Developer wrote:
> > Melvyn was not saying whether you were checking for None. If `value`
> > is i.e. "some string" your to_python method will return `None`. You
> > should do something like t
If you go down the user-profiles route - how would you handle managing each
of those via the Django Admin?
For example - say you have 3 user "types" - each just being User, with a
different profile linked to it. How would you manage each of those via the
admin interface?
On Mon, 19 Jun 2017 at 17
I am working on a project that uses Django 1.10.5 with Postgres 9.6 (and Python
3.6.1).
I am currently migrating historical data from an old system into the new
system. This historical data has a table with a (non-primary key) "ID" column.
I would like to migrate these rows into the new databas
What's the traceback when the code exits? There has to be some reason it
stops there, and whatever your Python code is running in should be able to
tell you why (traceback, status code, anything)
Without that, I can't help, as it could be anything - your code or Django's.
Andrew
On Mon, Jun 19,
Hi all,
I'm having some issues with integrating automatic group messaging based on
a post save signal from Django models.
I'm currently running a Graphene environment (graphene-python.org) to
support a webapp running React/Relay. In this setup we're performing
*Mutations* which will manipulate
Oh, ok got the point !!
Thanks !!
Regards,
Priyanka
On Monday, 19 June 2017 16:05:06 UTC+5:30, m712 - Developer wrote:
>
> Melvyn was not saying whether you were checking for None. If `value` is
> i.e. "some string" your to_python method will return `None`. You should do
> something like this:
Melvyn was not saying whether you were checking for None. If `value` is i.e. "some string" your to_python method will return `None`. You should do something like this:
```
if value in ('t', ...): return True
elif value in ('f', ...): return False
else: return bool(value) # You can chang
Hi Melvyn,
I am checking for None in the last if condition in to_python method :
--copy--
> if value in ('f', 'False', 'false', '0', '\x00', *None*): return
> False
--copy--
Thanks for checking and replying !!
Regards,
Priyanka
On Friday, 16 June 2017 20:03:22 UTC+5:30, Priyanka Thakur
On Jun 18, 2017 10:11 PM, "Victor Hooi" wrote:
Hi,
Say you have multiple custom users, each inheriting from AbstractUser. The
docs mention setting AUTH_USER_MODEL:
https://docs.djangoproject.com/en/1.11/topics/auth/customizi
ng/#substituting-a-custom-user-model
However, what happens if you hav
18 matches
Mail list logo