Re: reg: How to use Django Password validation in my existing views?

2019-02-05 Thread Mike Dewhirst
On 6/02/2019 5:15 pm, 'Amitesh Sahay' via Django users wrote: I have an existing django views.py where I have some password, username, and email validation logic applied. However, going forward I need to apply more advanced password validation. for e.g. password length limitation, uppercase s

Re: reg: How to use Django Password validation in my existing views?

2019-02-05 Thread 'Amitesh Sahay' via Django users
Anyway, I have found the answer to my own question. Below is the modified views.py code. def register(request): validators = [MinimumLengthValidator, NumberValidator, UppercaseValidator] if request.method == 'POST': # some code password = request.POST('password') try:

Re: Webinterface for python script

2019-02-05 Thread Scot Hacker
If I were just starting out, and needed to learn how to handle uploaded files, google would take me to these two docs: http://flask.pocoo.org/docs/1.0/patterns/fileuploads/ https://docs.djangoproject.com/en/2.1/topics/http/file-uploads/ Maybe I'm crazy or my perspective is skewed, but I think I

Social media apps in Django

2019-02-05 Thread senthu nithy
I wish to develop a social media like facebook using Django. Is there are any documents to develop this kind of social media development K.Senthuja Undergraduate Student (UOJ), https://www.linkedin.com/in/senthuja/ https://medium.com/@senthujakarunanithy -- You received this message because you a

Re: columns were not added/created to my database table (postgresql) after makemigrations/migrate

2019-02-05 Thread Atsunori Kaneshige
Hi Nitin, Thank you for your comment. I did not add any additional class in models.py. I just added two fields under the same class, List. class List(models.Model): item = models.CharField(max_length=200) completed = models.BooleanField(default=False) *created_at = models.DateTimeField('date', au

Re: columns were not added/created to my database table (postgresql) after makemigrations/migrate

2019-02-05 Thread Nitin Kalmaste
You need to add python's magic method in order to return something from the models you have created. Also you have to register your models to admin.py file. You can refer Django documents for that. On Wed, Feb 6, 2019, 8:03 AM Atsunori Kaneshige Hi, Django masters! > > My app has simple models.py

columns were not added/created to my database table (postgresql) after makemigrations/migrate

2019-02-05 Thread Atsunori Kaneshige
Hi, Django masters! My app has simple models.py just two fields like below. #models.py class List(models.Model): item = models.CharField(max_length=200) completed = models.BooleanField(default=False) #migration 0001 class Migration(migrations.Migration): initial = True dependencies = [

Re: get_expiry_age does not use expire_date column.

2019-02-05 Thread Tim Graham
Hi Shen, I haven't looked into this much but https://code.djangoproject.com/ticket/19201 could be related. Feel free to offer a patch to improve the situation. On Monday, February 4, 2019 at 12:59:16 PM UTC-5, Shen Li wrote: > > Hi community, > > I find it strange that in the DB session backend,

Re: REST Framework alternatives

2019-02-05 Thread Jani Tiainen
Well we're all entitled to our opinions. DRF is complex but it's not inflexible. You can do pretty much everything which is REST related. There are few alternatives, tastypie is mentioned but there exists also django-nap which is a bit more lightweight than DRF. On Tue, Feb 5, 2019 at 6:52 PM Vi

REST Framework alternatives

2019-02-05 Thread PARTH PATIL
I agree that indeed REST Framework has a decent learning curve, but i would say it is worth a shot if you only have to do validation it will handle it like magic with very few lines of code. -- You received this message because you are subscribed to the Google Groups "Django users" group. To u

Django Card Update problem e commerce problems

2019-02-05 Thread tercuman4848
Hi guys ım beginer django , ı have e marketing project ı wanna doing e commerce web site my problem ı cnat add to my product card to basket and ı wannt add to basket and removed on basket anyone help to me ?? thxx -- You received this message because you are subscribed to the Google Groups

Re: REST Framework alternatives

2019-02-05 Thread Sam Taiwo
What validation does he specifically need? He could probably get away with writing a few helper functions himself! On Tue, Feb 5, 2019, 17:50 Miguel Ángel Cumpa Ascuña < miguel.cumpa.asc...@gmail.com wrote: > Django tastypie > good luck! > https://django-tastypie.readthedocs.io/en/latest/toc.html

Re: How can download the offline version of Django Rest Framework

2019-02-05 Thread Nitin Kalmaste
You can install djangorestframework package using pip. Just read the documents from djangorestframework.com On Wed, Feb 6, 2019, 12:11 AM I am not always online but I like to work with the Django Rest Framework. > How can I get it offline. > > -- > You received this message because you are subsc

Re: Django opening balance calculation

2019-02-05 Thread Nitin Kalmaste
May I know whether you have started instance of the functions opening and closing or not. You have to call these functions from somewhere to run the loops On Tue, Feb 5, 2019, 9:07 PM Hi everyone. > > I have my models that looks like these: > > class Item(models.Model): > name = models.CharF

How can download the offline version of Django Rest Framework

2019-02-05 Thread sunejack1
I am not always online but I like to work with the Django Rest Framework. How can I get it offline. -- 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-user

Re: REST Framework alternatives

2019-02-05 Thread Miguel Ángel Cumpa Ascuña
Django tastypie good luck! https://django-tastypie.readthedocs.io/en/latest/toc.html El mar., 5 feb. 2019 a las 11:52, Victor Porton () escribió: > My buddy says that REST Framework is complex and inflexible. > > So the question: Any other framework which supports validating JSON data? > > -- > Y

REST Framework alternatives

2019-02-05 Thread Victor Porton
My buddy says that REST Framework is complex and inflexible. So the question: Any other framework which supports validating JSON data? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Django opening balance calculation

2019-02-05 Thread mintuser701
Hi everyone. I have my models that looks like these: class Item(models.Model): name = models.CharField(max_length=30) buying_price = models.PositiveIntegerField() selling_price = models.PositiveIntegerField() quantity = models.PositiveIntegerField() def __str__(self):

Django Opening Balance Calculations

2019-02-05 Thread mintuser701
I am trying to create a simple inventory app using Django. My project came to a stand still when I couldn't find a solution for calculating opening and closing balances on the fly/dynamically. I tried for days researching on the web but no progress yet. If anyone could help i will appreciat

Re: TemplateDoesNotExist at /vmail/inbox/

2019-02-05 Thread senthu nithy
Get i,Thank you! K.Senthuja Undergraduate Student (UOJ), https://www.linkedin.com/in/senthuja/ https://medium.com/@senthujakarunanithy On Tue, Feb 5, 2019 at 8:53 AM Alex Kimeu wrote: > It means the template you are trying to render is either not created or > not in the location where Django ex

Re: Projects in django

2019-02-05 Thread B.navya spoorthi Sweety
hi even i am looking for the same... plz help On Tue, Feb 5, 2019 at 5:47 PM wrote: > Hi Nitin, > > I am struggling to connect Django with MongoDB. > > Could you please help me to set up a workspace with this combo. > > it helps a lot to me. > > Thanks, > Srinivas, > thammanen...@gmail.com > > >

Re: Webinterface for python script

2019-02-05 Thread Derek
Hi Eric Of course I also think Django is great ... but I have never seen anyone refer to it as a "lightweight" project (before you, that is). My use of the word "overkill" was in the context of what how the OP described his need. If he said he wanted to upload data from a spreadsheet and stor

Re: django 1.6 + django-allauth facebook authentication error

2019-02-05 Thread sachit adhikari
Anyone having a issue, look at this tutorial : https://www.youtube.com/watch?v=PtVu04V027c On Tuesday, December 24, 2013 at 6:05:26 PM UTC+11, Nobin Mathew wrote: > > Hi, > > I am writing a django website using django-allauth for facebook > authentication. > > When I sign into facebook(after giv

Sample work space required for Django with Mongodb integration.

2019-02-05 Thread thammanenitcs
Hi All, I am trying from so many days to integrate both Django and MongoDB. but every time I am facing so many issues while doing migrations. Could you please share anyone having sample workspace for Django with MongoDB. It helps a lot to me. Thanks and Regards, Srinivas. -- You received t

Django Channels - Request hangs if exception is uncaught in AsyncHttpConsumer

2019-02-05 Thread notorious no
If an exception happens in the `handle` function of a consumer, then the exception is simply ignored. I'd like to be able to catch it via middleware if at all possible so I don't have to put decorators around every `handle` func. is this possible? -- You received this message because you are s

Re: mongoengine

2019-02-05 Thread thammanenitcs
I am not sure but try to import mongoengine. I am also trying many ways to get this combo integration. On Monday, February 4, 2019 at 11:29:16 PM UTC+5:30, B.navya spoorthi Sweety wrote: > > hi all > > i am trying django with mongo > > i added following lines in settings.py > > mongoengine.c

Django Channels - Catch unhandled exceptions in HTTP consumer

2019-02-05 Thread notorious no
While working with `AsyncHttpConsumer` objects, I noticed that uncaught exceptions cause the response to hang. In most cases, my code handles exceptions but in the off chance that an exception slips by, I'd like to catch it. Here's an example consumer that hangs: ``` class Example(AsyncHttpCon

Re: Projects in django

2019-02-05 Thread thammanenitcs
Hi Nitin, I am struggling to connect Django with MongoDB. Could you please help me to set up a workspace with this combo. it helps a lot to me. Thanks, Srinivas, thammanen...@gmail.com On Wednesday, January 16, 2019 at 1:31:01 PM UTC+5:30, Nitin Kumar wrote: > > Hi, > > I have an year of e

Re: Webinterface for python script

2019-02-05 Thread PASCUAL Eric
Hi, I never know what people mean by "Django is overkill for...". Django is lightweight and starts up very quickly You're right WRT the Django technical part. My feeling is that people implicitly refer to the learning curve, because it's the visible part. Django is a very capable framework with

Re: Webinterface for python script

2019-02-05 Thread Joel Mathew
Exactly. I to use file upload and rendering in a medical report. @OP Did your research and post your code. Can help with any errors you're getting. Research about request.POST, request.FILES. Read this. https://docs.djangoproject.com/en/2.1/topics/files/ On Tue, 5 Feb, 2019, 1:25 PM Scot Hacker