Re: Error: duplicate key value violates unique constraint

2022-09-23 Thread Shams Ulhaq
Make an other constraints pk and your issue is solved django by default
make a pk as id

On Sat, 24 Sept 2022, 10:46 Salima Begum, 
wrote:

> Hi all,
>
> When I am posting data in the server here we have an issue where the
> primary key already exists. For example, today I posted some data . I have
> the same issue. I solved the issue by deleting data from that particular
> table and then I am able to post data. Next day if I try to post data I am
> having the same issue with the primary key already exists. Why this is
> happening I am not able to understand.  On the server I am getting this
> issue where as in local I don't have any issue.
> Please help me to understand why I am having this issue.
> ```
> django.db.utils.IntegrityError: duplicate key value violates unique
> constraint "trades_trade_table_pkey"
> DETAIL: Key (id)=(2) already exists
> ```
> Thank you
> ~Salima
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMSz6bmxvY2f3caZbqvNG3ZaghriShCQV1pouvvOWmgx-wpgbA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACbcXAUFiToDmbDcBD22tvbpS9W%3D8n%2BXSkdF3MYta_iH%2BgfYgA%40mail.gmail.com.


Error: duplicate key value violates unique constraint

2022-09-23 Thread Salima Begum
Hi all,

When I am posting data in the server here we have an issue where the
primary key already exists. For example, today I posted some data . I have
the same issue. I solved the issue by deleting data from that particular
table and then I am able to post data. Next day if I try to post data I am
having the same issue with the primary key already exists. Why this is
happening I am not able to understand.  On the server I am getting this
issue where as in local I don't have any issue.
Please help me to understand why I am having this issue.
```
django.db.utils.IntegrityError: duplicate key value violates unique
constraint "trades_trade_table_pkey"
DETAIL: Key (id)=(2) already exists
```
Thank you
~Salima

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMSz6bmxvY2f3caZbqvNG3ZaghriShCQV1pouvvOWmgx-wpgbA%40mail.gmail.com.


Re: How do django Field type hints work?

2022-09-23 Thread Justin Black
That article doesn't explain where and how the DecimalField class describes
its type as Decimal to python and pycharm. What line does that?

On Fri, Sep 23, 2022, 8:36 PM Mohammad Anarul 
wrote:

> You can following the article
>
>
> https://www.geeksforgeeks.org/decimalfield-django-models/amp/
>
> On Sat, Sep 24, 2022, 5:09 AM Justin Black 
> wrote:
>
>> Hello there,
>>
>> If I have a model:
>>
>> class Money(models.Model):
>> price = models.DecimalField()
>>
>> m = Money(...)
>> pycharm knows that m.price is of type Decimal but when I read through the
>> django code base, I don't see DecimalField or Field subclassing
>> decimal.Decimal
>> And I don't see any registration code that registers DecimalField as type
>> Decimal
>>
>> How does django do this?
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/2b1d5103-7aa4-4882-b1a8-f88ec43293d2n%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/IDkt5miBpA0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAE59x8e_8AJsuM%3D4PYNvJecb-hy2wAXvV7N0%2BkjewqJxPw_LNQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALoW4woyJDw4U%3DBJ4gz2aHDreGCQpf1tE14V2O1TUor_cu5Nbg%40mail.gmail.com.


Re: How do django Field type hints work?

2022-09-23 Thread Mohammad Anarul
You can following the article


https://www.geeksforgeeks.org/decimalfield-django-models/amp/

On Sat, Sep 24, 2022, 5:09 AM Justin Black  wrote:

> Hello there,
>
> If I have a model:
>
> class Money(models.Model):
> price = models.DecimalField()
>
> m = Money(...)
> pycharm knows that m.price is of type Decimal but when I read through the
> django code base, I don't see DecimalField or Field subclassing
> decimal.Decimal
> And I don't see any registration code that registers DecimalField as type
> Decimal
>
> How does django do this?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2b1d5103-7aa4-4882-b1a8-f88ec43293d2n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE59x8e_8AJsuM%3D4PYNvJecb-hy2wAXvV7N0%2BkjewqJxPw_LNQ%40mail.gmail.com.


How do django Field type hints work?

2022-09-23 Thread Justin Black
Hello there,

If I have a model:

class Money(models.Model):
price = models.DecimalField()

m = Money(...)
pycharm knows that m.price is of type Decimal but when I read through the 
django code base, I don't see DecimalField or Field subclassing 
decimal.Decimal
And I don't see any registration code that registers DecimalField as type 
Decimal

How does django do this?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2b1d5103-7aa4-4882-b1a8-f88ec43293d2n%40googlegroups.com.


Re: JSON files. How is it done?

2022-09-23 Thread Matheus Bon
Thank you all!

Em qui., 22 de set. de 2022 às 16:41, Julio Cojom 
escreveu:

> Hi Matheus!
>
> Try to use django-select2 it is easy to set up and works like a charm!
>
> It has an advanced and easy implementation, so try first with the easy
> ones and then if your project needs something heavier, you can refactor the
> code with a simple couple of lines.
>
> https://django-select2.readthedocs.io/en/latest/
>
> Regards,
>
> Julio Cojom
>
> El jue, 22 sept 2022 a las 4:23, Matheus Bon ()
> escribió:
>
>> Hi!
>>
>> I'm lost in a question of my project, I see so many methods on the
>> internet but none work for me (maybe I'm implementing it wrongly)
>>
>> But, I would like to know if you could give me a method to transform my
>> model into a JSON file and then be able to retrieve these JSON files for me
>> to put in an INPUT with a dropdown, using, for example, SELECT2.
>>
>> Thanks!
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/d89cac37-fdb7-436d-8e67-3e848ff425b3n%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/oQCdaU1cFfA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHRQUHmdjwLux9ok-WVOYFon59HhoFhyXEXbCg0kP9KBSuVpLA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJAvtf4ZhKa5MKoBweWVYL%3Dtb7GMiZnT_On0j%3D%2B8mqmXV325Xg%40mail.gmail.com.


Is there a way to pass arbitrary argument from serializer.save to model.save method

2022-09-23 Thread Sencer Hamarat
Hi,

I need to pass an arbitrary argument from the serializer.save() method to
model.save() method?

Such as:

serialized_data = AModelSerializer(instance, data=adata_dict)
if serialized_data.is_valid():
serialized_data.save(an_arg="value")

class Amodel(models.Model)
def save(*args, **kwargs):
 extra_arg = kwargs["an_arg"]


The method demonstrated above is not working due to nature of serializer.
Bu I can't figure out any other way to do that.

Right now, I'm open to suggestions.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACp8TZjF3_eQ6KSQKnatVHQGQsh%3Dz6Kr4pdVEM151VbnSq5N1g%40mail.gmail.com.


Part Time Jobs

2022-09-23 Thread M Adnan
My name is Muhammad Adnan, I have one year experience in Django and Django
rest framework with html,css and Bootstrap and JavaScript. I need Part job
if anyone have part time job than they can contact me on Whatsapp
03094051037.
Thanks 

On Fri, 23 Sep 2022, 10:30 pm Sajanraj T D,  wrote:

> You can use js datatable to render csv or what ever you want in the table
> format. You can also upload data as csv in file upload in model form. If
> you want to render csv, then it should transform to json format and pass
> via jsonresponse. Or httepresponse using mimetype.
>
> On Fri, 23 Sep, 2022, 7:20 pm Preethy P Johny, 
> wrote:
>
>> Hello All,
>>
>> I am new to Django and currently in the mid of a project. I am creating a
>> dashboard for a hospital and the data is in the form of a csv/xls. I have
>> rendered the the interactive graphs which I need to display on the
>> dashboard, however on the jupyter notebook. How can I integrate it in
>> Django?
>>
>> Please help and suggest and advice.
>>
>> Thank You
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/e8a97535-b41c-470d-a1cc-f945c123e823n%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABp_0Bo_KJfFLc%2B5SU-p90zgxFMvGm7TdEfc8YCXkcxKQhX0Ug%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABNyTSoZjGjFvqs%2BW1x8mXXKehco8i%3D7jJwgV3zOasHePXFZhA%40mail.gmail.com.


Re: Adding csv as models

2022-09-23 Thread Sajanraj T D
You can use js datatable to render csv or what ever you want in the table
format. You can also upload data as csv in file upload in model form. If
you want to render csv, then it should transform to json format and pass
via jsonresponse. Or httepresponse using mimetype.

On Fri, 23 Sep, 2022, 7:20 pm Preethy P Johny, 
wrote:

> Hello All,
>
> I am new to Django and currently in the mid of a project. I am creating a
> dashboard for a hospital and the data is in the form of a csv/xls. I have
> rendered the the interactive graphs which I need to display on the
> dashboard, however on the jupyter notebook. How can I integrate it in
> Django?
>
> Please help and suggest and advice.
>
> Thank You
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e8a97535-b41c-470d-a1cc-f945c123e823n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABp_0Bo_KJfFLc%2B5SU-p90zgxFMvGm7TdEfc8YCXkcxKQhX0Ug%40mail.gmail.com.


Re: Adding csv as models

2022-09-23 Thread Thomas Lockhart
This is a very broad question so perhaps you are the stage of choosing the 
tools.

The workflow, handling historical data, managing updates and replacement data, 
etc are things to consider for a production system so you’ll need to deal with 
those design questions.

For my most recent system I do a file upload, then have separate code which 
reads the file into models. Separating these things helps with managing “sets” 
of data and catching malformed files.

For fancy plots I use Bokeh which, if you don’t need realtime updates, can be 
run from within Django.

For models, you should consider factoring your data to reduce duplication, but 
if it is really just a plotting problem then slam all of the data in the csv 
into a single model and start rendering.

hth

- Tom

> On Sep 23, 2022, at 2:38 AM, Preethy P Johny  
> wrote:
> 
> Hello All,
> 
> I am new to Django and currently in the mid of a project. I am creating a 
> dashboard for a hospital and the data is in the form of a csv/xls. I have 
> rendered the the interactive graphs which I need to display on the dashboard, 
> however on the jupyter notebook. How can I integrate it in Django?
> 
> Please help and suggest and advice.
> 
> Thank You
> 
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/e8a97535-b41c-470d-a1cc-f945c123e823n%40googlegroups.com
>  
> .

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7FE3FC40-C365-489C-B45B-A8172CDC09DF%40gmail.com.


Adding csv as models

2022-09-23 Thread Preethy P Johny
Hello All,

I am new to Django and currently in the mid of a project. I am creating a 
dashboard for a hospital and the data is in the form of a csv/xls. I have 
rendered the the interactive graphs which I need to display on the 
dashboard, however on the jupyter notebook. How can I integrate it in 
Django?

Please help and suggest and advice.

Thank You

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e8a97535-b41c-470d-a1cc-f945c123e823n%40googlegroups.com.


How to Configure Celery and Celery Beat with Django deployed on Elastic Beanstalk Amazon Linux 2 with Elasticache as Redis server?

2022-09-23 Thread Edchel Stephen Nini
*Overview:*
In our Django web app, there are some background tasks that we want to run 
every midnight. With this, I tried celery with celery beat.

 I was able to successfully implement background task scheduler with celery 
beat and worker with Redis as Celery broker following the tutorial on:

1. https://realpython.com/asynchronous-tasks-with-django-and-celery/
2. 
https://docs.celeryq.dev/en/stable/django/first-steps-with-django.html#using-celery-with-django
3. https://docs.celeryq.dev/en/latest/userguide/periodic-tasks.html



*The feature is working locally by running the servers, scheduler and 
workers accordingly on separate terminals.*
Django Server:
*`python manage.py runserver`*

Redis Server:
*`redis-server`*

Celery Worker:
*`celery -A django_project.celery beat -l info`*

Celery Beat Scheduler:
*`celery -A django_project worker -l info`*


*Question:*
How do I configure this for deployment in Elastic Beanstalk?
What is the correct way to set this up properly with Elasticache as the 
Redis server?

 Current Stack:
Django 3.1 deployed on AWS Elastic Beanstalk

Python 3.8 running on 64bit Amazon Linux 2/3.3.9 with ElastiCache endpoint


redis==4.3.4 # https://pypi.org/project/redis/

celery==5.2.7 # https://pypi.org/project/celery/

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/edbc3f44-07c5-4ccb-aad8-ce15eb84c25fn%40googlegroups.com.


Not avle to login with google in my website

2022-09-23 Thread Rajesh Kumar
Hi All,
I have integrated the social_django package for social logins like google
and Fb ...etc.
But It's working in localhost fine but after deployed in AWS ec2 with
docker It's not working
Authorization Error coming: redirect_uri https://0.0.0.0:8000/. but it
should redirect to HTTPS://{my_domain}/

If anybody can help with that It would be very helpful for me.
Thanks in advance

Rajesh Kumar

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKNDe%3D%3DQTdff8ZzOiHN6wdqcOH1L%3DXU7iE5%2BQj3Dht4o1gNktA%40mail.gmail.com.


Re: User Statistics

2022-09-23 Thread Walter Randazzo
Usung Django admin panel.

El jue, 22 sept 2022 20:28, Saudi Mostafa  escribió:

> Pls I need help
> How can I get as an administrator  statistics for users and activities
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c5a3b93e-b8b5-4abb-833a-d9fd36e9250en%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAL7Dry6ixDoMXpgDQ3h6WsosGvpV4ecGMFfoQUc-LsHmLBCTtA%40mail.gmail.com.


Re: Regarding Django forms

2022-09-23 Thread Sebastian Jung
This is easy you implement it with django forms then copy widget
html/javascript code with browser and then implement it 1:1 but not with
django forms... But i understand till yet WHY you want without django
forms? Yoz cab change django forms/widget 1:1 how do yoz want but this
isn't for a beginner easy... So far make what you want

Nishant Sagar  schrieb am Fr., 23. Sept. 2022,
13:40:

> I want to make my form save files to a database without using the django
> form
>
> On Fri, 23 Sep 2022 at 12:52 PM, Sebastian Jung 
> wrote:
>
>> Do you want change only a form or do you want also change widgets in this
>> form?
>>
>> Nishant Sagar  schrieb am Fr., 23. Sept. 2022,
>> 08:32:
>>
>>> Hey Sebastian,
>>>
>>> That’s not my concern, all I want to know is, whether is it advisable to
>>> implement the form such a way or Django form is a must.
>>>
>>> If it is advisable why can't we add those in the documentation and if it
>>> is not advisable what's the reason behind it?
>>>
>>> Thanks and regards,
>>> Nishant
>>>
>>> On Fri, 23 Sep 2022 at 11:36 AM, Sebastian Jung <
>>> sebastian.ju...@gmail.com> wrote:
>>>
 Hello,

 I would hire on upworks a cheap developer how show you how to implement
 such thing. This is relative easy when you know how it works

 Regards

 Nishant Sagar  schrieb am Fr., 23. Sept. 2022,
 07:57:

> Hey forks,
>
> I’m in little dilemma regarding Django forms. I'm working on a project
> as a backend guy who doesn't know much about CSS and JavaScript so a
> frontend guy delivered me a form template designed using CSS, however,
> Django documentation suggests that it's good practice to use Django forms.
>
> So how feasible do you think it is for a frontend guy to learn Django
> widgets from scratch to implement the same thing he can easily do from CSS
> and JS. As a newbie backend guy, it's not easy for me either to learn
> frontend tech to implement the same thing in so little time.
>
> So I tried implementing the form without using Django forms but I find
> it hard to deal with files as there is no documentation I can look up to.
>
> So can we add these to the documentation or it is still advisable to
> use Django forms?
>
>
> Thanks and regards,
> Nishant
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANNtL-Kqud7V6sk_%3DYnagzATw8eJjO9pCeDx9Za80XywXBi2tQ%40mail.gmail.com
> 
> .
>
 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAKGT9mzEh9H3yUOOF1%3DhOSsgz5KedwxSu-ygwQ1BPbBQtg7jEw%40mail.gmail.com
 
 .

>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CANNtL-%2BR7RZvEf1GX4bfb_LrAMW%3DVCVkKecb-gLg3%3DgK0x0WXg%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAKGT9mwdxnjvCBRLJ36TAv6HPdo63i0_U%2B6e2MaOsR%2BRhW%3DVxg%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> 

Re: Regarding Django forms

2022-09-23 Thread Nishant Sagar
I want to make my form save files to a database without using the django
form

On Fri, 23 Sep 2022 at 12:52 PM, Sebastian Jung 
wrote:

> Do you want change only a form or do you want also change widgets in this
> form?
>
> Nishant Sagar  schrieb am Fr., 23. Sept. 2022,
> 08:32:
>
>> Hey Sebastian,
>>
>> That’s not my concern, all I want to know is, whether is it advisable to
>> implement the form such a way or Django form is a must.
>>
>> If it is advisable why can't we add those in the documentation and if it
>> is not advisable what's the reason behind it?
>>
>> Thanks and regards,
>> Nishant
>>
>> On Fri, 23 Sep 2022 at 11:36 AM, Sebastian Jung <
>> sebastian.ju...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> I would hire on upworks a cheap developer how show you how to implement
>>> such thing. This is relative easy when you know how it works
>>>
>>> Regards
>>>
>>> Nishant Sagar  schrieb am Fr., 23. Sept. 2022,
>>> 07:57:
>>>
 Hey forks,

 I’m in little dilemma regarding Django forms. I'm working on a project
 as a backend guy who doesn't know much about CSS and JavaScript so a
 frontend guy delivered me a form template designed using CSS, however,
 Django documentation suggests that it's good practice to use Django forms.

 So how feasible do you think it is for a frontend guy to learn Django
 widgets from scratch to implement the same thing he can easily do from CSS
 and JS. As a newbie backend guy, it's not easy for me either to learn
 frontend tech to implement the same thing in so little time.

 So I tried implementing the form without using Django forms but I find
 it hard to deal with files as there is no documentation I can look up to.

 So can we add these to the documentation or it is still advisable to
 use Django forms?


 Thanks and regards,
 Nishant

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CANNtL-Kqud7V6sk_%3DYnagzATw8eJjO9pCeDx9Za80XywXBi2tQ%40mail.gmail.com
 
 .

>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAKGT9mzEh9H3yUOOF1%3DhOSsgz5KedwxSu-ygwQ1BPbBQtg7jEw%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CANNtL-%2BR7RZvEf1GX4bfb_LrAMW%3DVCVkKecb-gLg3%3DgK0x0WXg%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKGT9mwdxnjvCBRLJ36TAv6HPdo63i0_U%2B6e2MaOsR%2BRhW%3DVxg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANNtL-%2BabDP3VefExtaujqbSSLWjfLN5xb8_Rs_%2BxybDd4M3Mg%40mail.gmail.com.


Re: Regarding Django forms

2022-09-23 Thread Sebastian Jung
Do you want change only a form or do you want also change widgets in this
form?

Nishant Sagar  schrieb am Fr., 23. Sept. 2022,
08:32:

> Hey Sebastian,
>
> That’s not my concern, all I want to know is, whether is it advisable to
> implement the form such a way or Django form is a must.
>
> If it is advisable why can't we add those in the documentation and if it
> is not advisable what's the reason behind it?
>
> Thanks and regards,
> Nishant
>
> On Fri, 23 Sep 2022 at 11:36 AM, Sebastian Jung 
> wrote:
>
>> Hello,
>>
>> I would hire on upworks a cheap developer how show you how to implement
>> such thing. This is relative easy when you know how it works
>>
>> Regards
>>
>> Nishant Sagar  schrieb am Fr., 23. Sept. 2022,
>> 07:57:
>>
>>> Hey forks,
>>>
>>> I’m in little dilemma regarding Django forms. I'm working on a project
>>> as a backend guy who doesn't know much about CSS and JavaScript so a
>>> frontend guy delivered me a form template designed using CSS, however,
>>> Django documentation suggests that it's good practice to use Django forms.
>>>
>>> So how feasible do you think it is for a frontend guy to learn Django
>>> widgets from scratch to implement the same thing he can easily do from CSS
>>> and JS. As a newbie backend guy, it's not easy for me either to learn
>>> frontend tech to implement the same thing in so little time.
>>>
>>> So I tried implementing the form without using Django forms but I find
>>> it hard to deal with files as there is no documentation I can look up to.
>>>
>>> So can we add these to the documentation or it is still advisable to use
>>> Django forms?
>>>
>>>
>>> Thanks and regards,
>>> Nishant
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CANNtL-Kqud7V6sk_%3DYnagzATw8eJjO9pCeDx9Za80XywXBi2tQ%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAKGT9mzEh9H3yUOOF1%3DhOSsgz5KedwxSu-ygwQ1BPbBQtg7jEw%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANNtL-%2BR7RZvEf1GX4bfb_LrAMW%3DVCVkKecb-gLg3%3DgK0x0WXg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKGT9mwdxnjvCBRLJ36TAv6HPdo63i0_U%2B6e2MaOsR%2BRhW%3DVxg%40mail.gmail.com.


Re: Regarding Django forms

2022-09-23 Thread Nishant Sagar
Hey Sebastian,

That’s not my concern, all I want to know is, whether is it advisable to
implement the form such a way or Django form is a must.

If it is advisable why can't we add those in the documentation and if it is
not advisable what's the reason behind it?

Thanks and regards,
Nishant

On Fri, 23 Sep 2022 at 11:36 AM, Sebastian Jung 
wrote:

> Hello,
>
> I would hire on upworks a cheap developer how show you how to implement
> such thing. This is relative easy when you know how it works
>
> Regards
>
> Nishant Sagar  schrieb am Fr., 23. Sept. 2022,
> 07:57:
>
>> Hey forks,
>>
>> I’m in little dilemma regarding Django forms. I'm working on a project as
>> a backend guy who doesn't know much about CSS and JavaScript so a frontend
>> guy delivered me a form template designed using CSS, however, Django
>> documentation suggests that it's good practice to use Django forms.
>>
>> So how feasible do you think it is for a frontend guy to learn Django
>> widgets from scratch to implement the same thing he can easily do from CSS
>> and JS. As a newbie backend guy, it's not easy for me either to learn
>> frontend tech to implement the same thing in so little time.
>>
>> So I tried implementing the form without using Django forms but I find it
>> hard to deal with files as there is no documentation I can look up to.
>>
>> So can we add these to the documentation or it is still advisable to use
>> Django forms?
>>
>>
>> Thanks and regards,
>> Nishant
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CANNtL-Kqud7V6sk_%3DYnagzATw8eJjO9pCeDx9Za80XywXBi2tQ%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKGT9mzEh9H3yUOOF1%3DhOSsgz5KedwxSu-ygwQ1BPbBQtg7jEw%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANNtL-%2BR7RZvEf1GX4bfb_LrAMW%3DVCVkKecb-gLg3%3DgK0x0WXg%40mail.gmail.com.


Re: Regarding Django forms

2022-09-23 Thread Sebastian Jung
Hello,

I would hire on upworks a cheap developer how show you how to implement
such thing. This is relative easy when you know how it works

Regards

Nishant Sagar  schrieb am Fr., 23. Sept. 2022,
07:57:

> Hey forks,
>
> I’m in little dilemma regarding Django forms. I'm working on a project as
> a backend guy who doesn't know much about CSS and JavaScript so a frontend
> guy delivered me a form template designed using CSS, however, Django
> documentation suggests that it's good practice to use Django forms.
>
> So how feasible do you think it is for a frontend guy to learn Django
> widgets from scratch to implement the same thing he can easily do from CSS
> and JS. As a newbie backend guy, it's not easy for me either to learn
> frontend tech to implement the same thing in so little time.
>
> So I tried implementing the form without using Django forms but I find it
> hard to deal with files as there is no documentation I can look up to.
>
> So can we add these to the documentation or it is still advisable to use
> Django forms?
>
>
> Thanks and regards,
> Nishant
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANNtL-Kqud7V6sk_%3DYnagzATw8eJjO9pCeDx9Za80XywXBi2tQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKGT9mzEh9H3yUOOF1%3DhOSsgz5KedwxSu-ygwQ1BPbBQtg7jEw%40mail.gmail.com.