I want to start developing a surveillance security system. Please what
field name should i use for live feed from camera in my models.py. Please
your response will be appreciated.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe
Hi,
We are using django 1.11 for our ecommerce site.
We are facing an issue with modelform and many to many field in it as
follows:
Lets say there are two models:
class A(models.Model):
c = models.CharField()
class B(models.Model):
a = models.ManyToManyField('A')
Now if I defin
Would also add that the server CPU usage was hitting 100% due to the
template loading issue.
On Monday, October 29, 2018 at 4:48:54 PM UTC+5:30, Web Architect wrote:
>
> Hi,
>
> We are using django 1.11 for our ecommerce site.
>
> We are facing an issue with modelform and many to many field in
My recommendation would be to use a bit of Javascript to implement an
"autocomplete" to fetch records via AJAX as the user types (with
perhaps a minimum of 3 characters or so), so you only ever fetch a
subset of records and don't overload your template.
You can find quite a few 3rd party libraries
Hi Sanjay,
Thanks for the prompt response and the approach.
That seems to be an efficient approach - would look into auto-complete.
Thanks.
On Monday, October 29, 2018 at 5:09:50 PM UTC+5:30, Sanjay Bhangar wrote:
>
> My recommendation would be to use a bit of Javascript to implement an
> "au
I'm far from being an expert but I think yours is a rather simple operation
that needs to be executed every n minutes.
I think that in the case you're explaining, Celery is an overkill. Why not
go with a cron job?
You might want to create a combination of bash and python scripts to do
exactly w
I usually get this error when I assign an object to a field rather than its pk.
So this is probably where your problem is:
clinicid=clinicobj.pk
-Original Message-
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
Behalf Of Joel Mathew
Sent: Saturday, October 2
I think one of the numeric values you are passing is an empty string.
Django is trying to cast it to int but failing to do so.
Best solution would be to print each values before save() call & you will
know which is the error causing column..
Hope it helps!!
On Sunday, October 28, 2018 at 8:35:
Yes, usually I print request.POST to check.
On Mon, 29 Oct 2018 at 19:11, Manjunath wrote:
>
> I think one of the numeric values you are passing is an empty string.
> Django is trying to cast it to int but failing to do so.
>
> Best solution would be to print each values before save() call & you w
Hello,
I am new to Django and enjoying the learning process, unfortunately I am
stuck, and I need expert guidance.
I am learning through developing a User Authentication System. The system
is supposed to have a user registration functionality, login, user profile
editing and logout. I have managed
Hi,
Is it possible to have a variable within a variable...
For example
*{{ flights.Legs.0|length}} *
is equal to 1 or 2 or basically a integer. Then i would like to connect
this to something like:
{{flights.Legs.0.InboundR.*X*.ATime}} where in stead of the X, I would like
to have the value o
sounds like you would be better off with a template tag
On Monday, October 29, 2018 at 1:22:04 PM UTC-4, a.diaz@gmail.com wrote:
>
> Hi,
>
> Is it possible to have a variable within a variable...
>
> For example
>
> *{{ flights.Legs.0|length}} *
>
> is equal to 1 or 2 or basically a integer. T
i have a html form with 3 inputs and steps buttons.
1st step user must put first name and press button 1
2st step user must put last name and press button 2
3st step user must put email and press final button 3
any time where the user press any button then go to next html step.
i want to Ha
I am currently leading a team handling a 16 year old database filled with
junk. I think it has existed since its HTML application was served by
Oracle forms.
We are in production with Django, and turning off the more recent
ColdFusion version this Thursday.
However, some of our ways of working
I certainly do hope that it’s filled with more than just junk. If it truly is
just junk, scrap it, and create something else.
If you are adding a column named “id”, I don’t think there is a need to set
managed to False or really do much of anything else with your model. You could
rename the co
Hi there,
Newbie to Channels.
I am trying to write a Async consumer to handle a http GET request
How to write a subclass MyAsynHttpConsumer(AsyncHttpConsumer) for this
purpose? Or I am looking at the wrong class?
Also if I understand correctly, I should manually add a new pair 'http':
MyAsynHttp
Not sure if this is the best way. I just found
inside AsyncHttpConsumer.handle() I can access self.scope['method'] to
determine if it is a GET or POST or others.
Thanks
Drew
On Monday, October 29, 2018 at 3:50:43 PM UTC-6, Zhiyu/Drew Li wrote:
>
> Hi there,
>
> Newbie to Channels.
>
> I am
Yup, that's the right way - subclass the async consumer class and then
write a handle method. You have to do your own post/get distinctions, like
in a Django view, but with the scope rather than the request.
Andrew
On Mon, Oct 29, 2018 at 4:37 PM Zhiyu/Drew Li wrote:
> Not sure if this is the b
Remove declaration of first_name, last_name & email in Form calss.
class SignUpForm(UserCreationForm):
class meta():
model = User
fields = ('username', 'first_name', 'last_name', 'email',
'password1', 'password2', )
And while Saving the form, follow below steps.
if form.is_v
19 matches
Mail list logo