after running sudo pyhton manage.py runserver it is showing -
Unhandled exception in thread started by
Traceback (most recent call last):
pl. help me
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop recei
Hi. First off, you don't need sudo to run "runserver" command, unless you're
using port <1000 (or something), which you also shouldn't, since runserver is
for development only.
Second, without the actual traceback there's not much one can do to help you.
> On 15 Dec 2016, at 07:31, bhupesh kurd
Why "flat" keyword is accepted that way? Why not just as def
values_list(self, *fields, flat=False)? Because of that I cannot have
support in my IDE (autocomplete)
def values_list(self, *fields, **kwargs):
flat = kwargs.pop('flat', False)
if kwargs:
raise TypeError(
Probably for adding other arguments later without braking function signature?
I'm with you on this one, though. Using kwargs everywhere it's possible really
helps developing using Django. Maybe this is a subject for
django-develop...@googlegroups.com.
> On 15 Dec 2016, at 15:39, Alexey Gerasim
I have not tried this out but you can check this-
https://github.com/stefanfoulis/django-phonenumber-field/
On Thursday, December 15, 2016 at 1:07:02 AM UTC+5:30, Lloyd Dube wrote:
>
> Hi,
>
> Has anyone captured phone number information using a Form/ModelForm
> instance? I have the field as
django-phonenumber-field is expecting a charfield and not a int.
Johnf
On Thu, Dec 15, 2016 at 5:12 AM, Deep Shah wrote:
> I have not tried this out but you can check this-
>
> https://github.com/stefanfoulis/django-phonenumber-field/
>
>
>
> On Thursday, December 15, 2016 at 1:07:02 AM UTC+5:30
On 15 December 2016 at 03:43, Avraham Serour wrote:
> Hi,
>
> I've given a lot of thought on this, I have also searched for django apps
> that deal with permissions, I didn't find something that implements
> hierarchical object level permissions, I have a feeling that I am
> overcomplicating thing
Python 2 does not support named arguments after *fields, and raises a
SyntaxError. As long as Django supports Python 2, we're stuck with the
current approach. I'm sure the new style will be used once Python 2 support
is dropped.
On Thursday, December 15, 2016 at 1:40:02 PM UTC+1, Alexey Gerasim
I an developing a chat app, while some user is offline, I need to persist
the message from his online friends . so , I think it is good choice to
develop a customized ChannelLayer which will transfer all offline messages
to a consumer worker who save message to cache . is it right that using
C
Let me describe my scenario.
I got some views that I want to check two conditions before render:
1. user is logged in
2. user fulfilled account details form
If user is not logged in -> redirect to login page.
If user have not fulfilled its account details -> redirect to the form page.
I'm us
Yea, thats correct. I have no idea why I did that thank you for pointing
that out. It looks like that's what was causing my internal server error
too. Thank you!
On Thursday, December 15, 2016 at 6:55:02 AM UTC-8, Vinicius Assef wrote:
>
> AFAIK you should use:
>
> messages.error(request, 'There
I have a Document model that has an M2M-symmetrical field on itself. The idea
is that we can "link" documents to other documents. It's very simple to find
the linked documents of a particular document, but is there an easy way to get
all the linked documents of the linked documents of the docu
I came up with a solution by overriding the *handle_no_permission* method
from the *UserPassesTestMixin*:
class FulfillAccountRequired(UserPassesTestMixin):
def test_func(self):
return self.request.user.account_completed
def handle_no_permission(self):
return redirect('we
On 16/12/2016 8:52 AM, Matthew Pava wrote:
I have a Document model that has an M2M-symmetrical field on itself.
The idea is that we can “link” documents to other documents. It’s
very simple to find the linked documents of a particular document, but
is there an easy way to get all the linked
No, that's not what a channel layer is meant to do - it's for short term
buffering (messages expire after a minute by default).
I suggest you use a database.
Andrew
On 15 Dec 2016 17:53, "wang sheng" wrote:
> I an developing a chat app, while some user is offline, I need to persist
> the mess
15 matches
Mail list logo