Re: Seeking Ideas for Enhancing Chat Implementation Similar to WhatsApp

2024-08-19 Thread Chris
Lemme know the state of your current implementations/project, I can suggest with tips what can be improved and even some other recent features I found in other chat platforms. On Sun, Aug 18, 2024, 3:29 PM Pandiya rajan wrote: > Hello everyone, I've been working on some of my own projects and

Re: Async views means dropping gunicorn gevent for uvicorn, affecting sync view performance

2023-04-17 Thread Chris Barber
tc) >> >> >> On Sun, Apr 16, 2023 at 5:34 PM Chris Barber wrote: >> >>> Hello >>> >>> Production django app, currently 100% sync views, running under gunicorn >>> with gevent worker class. >>> >>> @andrewgodwin s

Async views means dropping gunicorn gevent for uvicorn, affecting sync view performance

2023-04-16 Thread Chris Barber
Hello Production django app, currently 100% sync views, running under gunicorn with gevent worker class. @andrewgodwin suggests here it is possible to migrate slowly, just run hybrid sync-async and add or convert views as desired https://www.youtube.com/watch?v=19Uh_PA_8Rc&t=1728s But to get a

Re: group

2022-09-28 Thread Chris Minja
Add me +255754073586 On Tue, Sep 27, 2022, 17:42 Howard Black wrote: > Howie @8768150523 > > > > Regards > > Howard Black > -- > *From:* django-users@googlegroups.com on > behalf of yassin kamanyile > *Sent:* Monday, 26 September 2022 12:48 pm > *To:* django-users@g

Re:

2022-09-27 Thread Chris Adebiyi
I'm interested, you can add me via +2348161201965 On Tuesday, September 27, 2022, André Lewis wrote: > Hi! could you add me as well, > +18762382482 > > On Mon, 26 Sept 2022 at 20:45, Adolfo Duque León Fresneda (MisterRevenue) < > duque...@gmail.com> wrote: > >> hello if you can send me the link

Re: How would this be done within the Django framework?

2021-01-30 Thread Chris Evans
Hi Ryan, Thanks, that's very helpful. I suspected that this would require REST. DRE On Sat, Jan 30, 2021 at 12:54 PM Ryan Nowakowski wrote: > On Sat, Jan 30, 2021 at 08:49:09AM -0800, dazzle.razzle.em wrote: > > I am new to Django and to web development, and am trying to get my > bearings. >

Re: hi

2020-11-01 Thread Chris Franklin
Hyy bro On Nov 1, 2020 21:39, "Walter Randazzo" wrote: > HI there! > > > El dom., 1 nov. 2020 a las 16:13, tyshan...@gmail.com (< > tyshanchn...@gmail.com>) escribió: > >> >> hi >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To u

Re: hi

2020-11-01 Thread Chris Franklin
Hii On Nov 1, 2020 21:26, "shahed info" wrote: > Hi brother > > On Mon, Nov 2, 2020, 1:14 AM tyshan...@gmail.com > wrote: > >> >> hi >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receivin

Re: JavaScript

2020-10-02 Thread Chris Franklin
Nyohereza screenshot ndakurabire On Oct 2, 2020 17:32, "Eugene TUYIZERE" wrote: > Dear All, > > I did form validation where I can not save empty value. And When I try a > message displays under the text field. What I want is, in case I type at > least a single character, the error message to dis

Ordering of Q = different SQL and results... Is this a bug? Would appreciate additional eyes before raising ticket.

2020-08-19 Thread Chris Bell
e this is necessary... Thanks in advance everyone Chris class Book(BaseModel): name = models.CharField(max_length=CHAR_MAX_LEN, null=True, blank=True) class BookStatus(BaseModel): book = models.ForeignKey(Book, null=False, blank=False, on_delete=models.CASCADE, related_name='status

channels_redis & async_to_sync performance problem

2020-03-29 Thread Chris
Hello, I have a worker process that uses async_to_sync(group_send) to send messages to my Channels consumers. The worker process is a simple long-running synchronous loop (not based on Django Channels) that is started via a Django management command. When I use runserver and the in-memory chan

Re: How to best secure environment variables (secret key, passwords etc.) stored in .yml files?

2020-01-30 Thread Chris Wedgwood
not in source control. The Ansible deployment requires an ssh password that I store in a Password Manager that has two-factor authentication. The docker-compose file can read environment variables from the .env file. Have a look at Django-Cookiecutter and see how they do it. That helped me a l

Re: Django User Authrntication

2019-11-23 Thread Chris Achinga
thank you very much On Sat, 23 Nov 2019 19:30 Elijah O. Raji, wrote: > Hello Chris > I'm ready to help kindly put the question through. > > Or you can contact me view WhatsApp > +2349036475407 > > -- > You received this message because you are subscribed to the

Django User Authrntication

2019-11-23 Thread Chris Achinga
Hello, Could I please get help creating user login and logout and registration using Django. 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-us

Re: Docker performance on Mac OS X

2019-09-23 Thread Chris Wedgwood
docker In terms of my docker usage I will verse myself in allocations etc cheers Chris On Monday, 23 September 2019 12:18:03 UTC+1, Jason wrote: > > What kind of hardware are you working with? What resources do you have > allocated to Docker. Are you including tens of thousands of

Docker performance on Mac OS X

2019-09-23 Thread Chris Wedgwood
else encountered this on Mac OS and have any wisdom to share to alleviate? Thanks Chris -- 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

Channels: can ApplicationCommunicator get events from my channel layer?

2019-06-08 Thread Chris
I am writing an integration test that loads a page, which somewhere internally calls get_channel_layer().send() to my ChannelNameRouter. I want the event to be consumed and then make various assertions. I think that I need to instantiate an ApplicationCommunicator with my application instance f

Channels: can I run a worker in the same process?

2019-06-07 Thread Chris
I'm getting started with Channels 2.x. In my web app, certain actions take more than 30 seconds to complete, so rather than doing it synchronously in the request, we do the processing in the background. It seems that any background task requires ChannelNameRouter and a separate runworker proces

Re: LookupError: No installed app with label 'admin'.

2019-05-21 Thread Chris Bartos
When in your virtual environment, if you run 'pip install django' it should install sqlparse automatically. If not, you have to install it manually. 'pip install sqlparse' On Sunday, May 19, 2019 at 10:11:15 PM UTC-4, This is a test message wrote: > > Hi, > > > > I am new to django and am tryi

Django TidyFields

2019-04-24 Thread chris
sheet methods. In the initial release 30 different attacks are tested, and the rest will be added in the next version. Future plans include adding form fields with integration support for WYSIWYG libraries like django-summernote. I hope you find the module useful, Chris Routh Github: Routhi

Best way to run a shell script, using input value from Django?

2019-01-02 Thread Chris Robinson
s existing that will help me not need to write everything from scratch, especially if 'monitoring' is needed? Would Celery be ideal for this? Thanks for any input! Regards, Chris -- You received this message because you are subscribed to the Google Groups "Django users" g

Best way to submit application cmd, then download a resulting file?

2019-01-02 Thread Chris Robinson
s existing that will help me not need to write everything from scratch, especially if 'monitoring' is needed? Would Celery be ideal for this? Thanks for any input! Regards, Chris -- You received this message because you are subscribed to the Google Groups "Django users" g

Re: Cannot get Django test migrations to detect test models.py

2018-11-05 Thread chris
I am not sure you understood. I am doing testing, and this is a model that is only for tests. I am attempting to achieve the test-only models solution outlined here: https://code.djangoproject.com/ticket/7835#comment:24 Also outlined in the first paragraph of this accepted answer on stack ove

Re: Cannot get Django test migrations to detect test models.py

2018-11-05 Thread chris
I'm not sure you understood the question. From: "amit pant" To: "django-users" Sent: Monday, November 5, 2018 2:24:51 AM Subject: Re: Cannot get Django test migrations to detect test models.py can you register your model in admin.py? If not then go for it. On Sun 4 Nov, 2018, 12:10 AM

Cannot get Django test migrations to detect test models.py

2018-11-03 Thread chris
Hi folks, I'm trying to build a test suite for a django plugin for a field. To test the field I need to have a test model, but since my django app does not provide models, and I have the model in the /tests/models.py it's not detecting the model when the test db migrations are applied. I saw som

Re: Channels: about max message size

2018-10-24 Thread Chris
tly can't remember, that was years ago. > There's really not much I can do other than recommending an upgrade to > something vaguely recent. > > Also make sure Heroku is not cutting you off with a request timeout or > something. > > Andrew > > On Tue,

Channels: about max message size

2018-10-23 Thread Chris
I use Channels & websockets for my webapp's "export data" functionality, since it can take a long time to generate the file (more than 30 seconds). In general this works fine, even for large downloads (several MB), but I have seen several cases on Heroku where the browser never receives the mes

Re: Field Instances overriding each others arguments

2018-10-18 Thread chris
Got an answer on StackOverflow https://stackoverflow.com/questions/52878934/django-field-instances-overriding-each-others-arguments/52879102#52879102 I was linking to a mutable dict instead of copying it. That was a bit dumb. Cheers, Chris Routh From: ch...@routh.io To: "django-

Field Instances overriding each others arguments

2018-10-18 Thread chris
) comments = GenericRelation(settings.COMMENT_MODEL) On this model the `body` field which is the last field on the model overrides the self.args of all the BleachCharField and BleachedTextField instances before it, so they all take the same parameters. Am I missing something on this? Is sel

Does the "manifest_strict" attribute on "ManifestFilesMixin" work?

2018-10-01 Thread Chris Bergstresser
27;t. Is this intended behavior? Does anyone know why I'd be getting a "Missing staticfiles manifest entry" only if DEBUG were turned off? -- Chris -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Django alternatives to Gulp

2018-09-28 Thread Chris Routh
I would recommend moving to webpack and using https://github.com/owais/django-webpack-loader to manage loading of webpack files. This allows you to precompile your webpack resources and include only the compiled js/CSS and the webpack stats file. Django will use the webpack stats file to determine

Re: Explicitly setting 'created' date for initial user import from legacy application

2018-09-24 Thread Chris Routh
Ahh, I've worked out that if I overwrite the created property with `model.created = oldmodel.joined` and call `.save()` a second time it will work. Cheers folks! On Monday, 24 September 2018 10:37:11 UTC-7, Chris Routh wrote: > > Hi all, > > I need to explicitly set the creat

Explicitly setting 'created' date for initial user import from legacy application

2018-09-24 Thread Chris Routh
Hi all, I need to explicitly set the created date for users when saving them during an initial import process from a legacy user table. I am using a legacy DB model and trasnforming the models and saving the new user obects. I only need to override the default create behaviour for this one impo

Explicitly setting 'created' date for Users when importing from Legacy database

2018-09-24 Thread Chris Routh
Hi folks, I'm wondering if there is a way to override the automatic 'creation' date for a user for an initial import of users from a legacy database, but then use normal created date settings the rest of the time. I imagine I need to override the user model, however I would only need to do this

Re: Adding stored procedures

2018-04-19 Thread Chris Wedgwood
stored procedure is going to be used for an import task that isn't actually related to Django so probably needs to be deployed by another mechanism and I should leave migrations for only DJango specific changes thanks Chris On Wednesday, 18 April 2018 07:50:52 UTC+1, Chris Wedgwood

Adding stored procedures

2018-04-17 Thread Chris Wedgwood
anyone had experience of having to create other things such a stored procedures/views/functions? thanks Chris -- 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

Re: Printing to console from async method inside django channels

2018-03-09 Thread Chris Barry
jango-2.0.3 asgiref-2.2.0 autobahn-18.3.1 daphne-2.1.0 setuptools-38.5.2 On Friday, 9 March 2018 12:31:32 UTC, Andrew Godwin wrote: > > Hi Chris, > > Since you also posted this to GitHub ( > https://github.com/django/channels/issues/967), I will answer there. > > Andrew > >

Printing to console from async method inside django channels

2018-03-08 Thread Chris Barry
I'm trying to print inside these methods in from this example in django channels: https://github.com/andrewgodwin/channels-examples/blob/master/multichat/chat/consumers.py But nothing is coming through to the console. I haven't worked with python Async before, so I'm not sure if I'm doing some

Re: [OT] Is Trump planning to break the Internet?

2017-12-13 Thread Chris Seberino
Maybe this will shed some light https://medium.com/@cseberino/toll-equality-b11b07267456 > > -- 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+u

Re: Please explain "TypeError: handle_404() got an unexpected keyword argument 'exception'"

2017-12-12 Thread Chris Seberino
> > > > And what does your handle_404 function look like? As the error says, it > needs to accept an "exception" keyword argument. > > Note also that overriding the 404 handler is a very specialized thing to > do and is almost always not required. Why are you doing this? > > Here it is. The

Re: Please explain "TypeError: handle_404() got an unexpected keyword argument 'exception'"

2017-12-12 Thread Chris Seberino
> > >> >> Please explain "TypeError: handle_404() got an unexpected keyword >> argument 'exception'" >> > > It means literally that "handle_404() got an unexpected keyword argument > 'exception'", how are you calling handle_404()? > > Thanks for your help. In my urls.py I have this... django.c

Please explain "TypeError: handle_404() got an unexpected keyword argument 'exception'"

2017-12-11 Thread Chris Seberino
I'm trying to get a 404 page to show instead of a 500 error when Django app sees a nonexistent URL. I'm still getting 500 errors with this clue in logs but I don't know what it means Please explain "TypeError: handle_404() got an unexpected keyword argument 'exception'" (The nonexistent U

Re: Why get "Server Error 500" instead of 404 template?

2017-12-11 Thread Chris Seberino
I didn't have logging enabled in my settings.py. Problem solved. > > > > --- > % more nginx.conf > > server { > server_name ~^(www\.)?domainname\.(org|co

Re: Why get "Server Error 500" instead of 404 template?

2017-12-11 Thread Chris Seberino
> > For more information, you need to show us your nginx configuration and > your wsgi server configuration. > > > Thanks a million. Here is what you asked for... --- % mor

Why get "Server Error 500" instead of 404 template?

2017-12-10 Thread Chris Seberino
I cannot track down why 404 page isn't being used. I can't get any help from syslog or Nginx log files. I tried adding DEBUG=True to settings.py and still no clues. I only get "Server Error 500". Here is settings.py TEMPLATES= [{"BACKEND" : "django.template.backe

Re-runnable sql scripts in the migrations framework

2017-11-02 Thread Chris Wedgwood
question is does the migration framework allow for re-runnables? If not can anyone recommend a good approach for this? thanks Chris -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

Re: Referencing objects that don't exist that will be created in forms

2017-10-19 Thread Chris Wedgwood
cts that will be parsed before they exist On Thursday, 19 October 2017 10:23:36 UTC+1, Chris Wedgwood wrote: > > Hi > > I have the following scenario in my forms.py: > > UNIVERSITY_CHOICES = University.objects.values_list('id', 'name') > > class Univ

Referencing objects that don't exist that will be created in forms

2017-10-19 Thread Chris Wedgwood
ot;: "true","title": "find university..."},choices=UNIVERSITY_CHOICES), required=False) The migration fails as it is expecting the university table to exist but does not yet. This is clearly an anti-pattern on my part. What is the correct way to approach this? than

Re: How do I request a new feature in 1.11.x?

2017-10-11 Thread Chris Beck
s.djangoproject.com/en/dev/internals/release- > process/#supported-versions > > On Wednesday, October 11, 2017 at 12:01:06 AM UTC-4, Chris Beck wrote: >> >> Thanks James, >> >> I wasn't expecting action from my email, just advice on how to prompt for >> i

Re: How do I request a new feature in 1.11.x?

2017-10-10 Thread Chris Beck
Thanks James, I wasn't expecting action from my email, just advice on how to prompt for it - which you provided! Cheers, Chris On 10 October 2017 at 23:57, James Schneider wrote: > > > On Oct 10, 2017 8:50 PM, "Chris Beck" wrote: > > So there is a new feature

How do I request a new feature in 1.11.x?

2017-10-10 Thread Chris Beck
and will be around for a few more years are new features being contemplated? Cheers, Chris -- 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: {% csrf_token %}

2017-09-27 Thread Chris Wedgwood
Hi Alex Try this: return render_to_string('home.html', request=request) cheers Chris On Tuesday, 26 September 2017 18:29:15 UTC+1, Alex Kleider wrote: > > I'm using test driven development (going through Harry J.W. Percival's > book) and have found that the fol

Re: server connection reset when click on localhost: Python error: wsgiref-> simple_server.py "noneType" object has no attribute split

2017-09-25 Thread &#x27;Chris Parry' via Django users
What was the package you were missing? On Tuesday, 22 March 2016 00:01:11 UTC, amarshall wrote: > > Figured it out.. In case anyone else was wondering or comes across this. I > went into the wsgiref/simple_server.py file and commented out that line of > code: > /usr/lib/python2.7/wsgiref/simple_

Correct pattern to call external api during form saving

2017-08-21 Thread Chris Wedgwood
user form is saved(is_valid)? What if the api goes down? How to handle that gracefully? Thank you Chris -- 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

Model with mix of timezone aware and naive datetimes?

2017-06-22 Thread Chris Beck
I a model that requires both timezone aware and naive datetimes. To be specific, I am modelling a travel segment where the standard for departure and arrival is to always use current local time, regardless of tz/dst/&c as well as an approved_on field that should have a tz. Is there anyway to de

Re: Data base connection problem

2017-04-17 Thread Chris Bartos
7;manage.py makemigrations student' & 'manage.py migrate' Chris On Saturday, February 13, 2016 at 11:42:23 PM UTC-6, News Latest wrote: > > i have made a model names STUDENT and when i run migrataion no migration > applied but when from admin i tried to browse st

Re: Django-admin.py Error

2017-04-17 Thread Chris Bartos
This issue is something to do with your Python version. Uninstall Python and install Python 2.7.8 instead of 2.7.7 as it seems there are issues with it. Chris On Tuesday, May 26, 2015 at 1:06:07 AM UTC-5, Shashwat singh wrote: > > Django is properly installed but when i run, django-admin

Follow the django tutorial but failure

2017-04-05 Thread Chris Chan
Hi, I'm try to follow the Django tutorial and modify something but failure. When I execute the web page is error and the Django server console said " Method not allowed (Post): /polls/3/results/" But I'm type address : http://127.0.0.1:8000/polls/3/results/ is fine, thanks In "First app, Part 4"

Re: Meta class completely missing.

2017-03-20 Thread chris rose
hi brandon try removing (object) from your meta class declaration -- 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

Re: new to Django

2017-03-06 Thread chris rose
+1 ludovic -- 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 django-users@googlegro

Re: new to Django

2017-03-06 Thread chris rose
+1 ludovic -- 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 django-users@googlegro

Re: new to Django

2017-03-06 Thread chris rose
+1 ludovic -- 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 django-users@googlegro

Re: USING graphs in django admin

2017-03-06 Thread chris rose
i have used d3.js in a template and past it data when answering a http request with a view i found d3.js a little interesting to wrap my head around but it is a good tool not used it with the admin though -- You received this message because you are subscribed to the Google Groups "Django us

Re: Issue using django-admin

2017-03-05 Thread chris rose
if you are new to django you don't want to download the development edition, this is more for contributing firstly you need pip. secondly, do your self a huge favour and install virtualenv and read the getting started docs now rather than later once you have made a virtualenv directory and mad

Re: Iframe'd page in Django template can't find it's Javascript or CSS files, 404 error

2017-03-05 Thread chris rose
there is a lack of information here, though you last post suggests maybe you missed a couple of template tags at the start of you index.html add: {% load staticfiles %} and then when adding you scripts use: -- You received this message because you are subscribed to the Google Groups "Djang

Re: group by 3 fields

2017-02-26 Thread chris rose
there is a model meta option called ordering. you can specify a list of fields to order by docs found at: https://docs.djangoproject.com/en/1.10/ref/models/options/#ordering i have only used this in the admin -- You received this message because you are subscribed to the Google Groups "Djang

Re: Daphne does not handle wss requests

2017-02-24 Thread chris rose
I too experience this in my local development environment I find secure web sockets throwing an error in the browser console when attempting to send a message: InvalidStateError: DOM Exception 11: An attempt was made to use an object that is not, or is no longer, usable. I had attributed this

Re: import error: no module named viewflow.frontend

2017-02-23 Thread chris rose
did you add 'viewflow.frontend' to installed_apps? -- 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 gro

Re: django channels in the shell

2017-02-23 Thread chris rose
thank you. i completely overlooked that function -- 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 grou

Re: django channels in the shell

2017-02-22 Thread chris rose
solved it.. I had to explicitly add the hosts parameter from django.conf import settings > from django.utils.module_loading import import_string config = getattr(settings, "CHANNEL_LAYERS", {}) > hosts = config['default']['CONFIG']['hosts'] backend_class = import_string(config['default']['BACKE

Re: Django template language resolve url

2017-02-22 Thread chris rose
sorry i typed an s in there, here is that code amended > > -- 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

Re: Django template language resolve url

2017-02-22 Thread chris rose
hey xyron.. i replied to your other thread your namespace should actually just be links so the answer should be: -- 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

Re: Error using url in django template language

2017-02-20 Thread chris rose
hey you tried: you app name is links rather than myapp, so try: -- 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.

django channels in the shell

2017-02-19 Thread chris rose
I'm trying to implement a custom management command into my app. its purpose would be to check the database for a poll which fits time parameters and update clients via channels. I want to get a list of the clients in a group, then decide whether or not to send them new information based on the

Re: Append to models.JSONField on POST

2017-02-16 Thread chris jess
updating. > > > If you know what you are doing, read the source, look at how to update > the raw value, write some test to make sure what you are doing is > working now and is working each time you upgrade django. > > I wish you good luck if you go down that path and to have

Append to models.JSONField on POST

2017-02-16 Thread chris jess
Can anyone let me know the best way to append to a models.JSONField on HTTP POST? I would prefer to simply append to the existing JSONField as opposed to updating the values in it. Is it possible to do this without first loading that object? Thanks. -- You received this message because you a

Append to models.JSONField on POST

2017-02-16 Thread chris jess
Can anyone let me know the best way to append to a models.JSONField on HTTP POST? I would prefer to simply append to the existing JSONField as opposed to updating the values in it. Is it possible to do this without first loading that object? Thanks. -- You received this message because you a

Re: Single Page Application in Django

2017-01-10 Thread Chris Bartos
fails than it moves on to the next one. I hope that helps. Chris On Tuesday, March 8, 2016 at 5:59:51 AM UTC-5, nikhil...@gmail.com wrote: > > I m also working on SPA with angular.js. One problem I have is regarding > authentication. > > We have currently mixture of angular.js and

Re: Authentication for mobile devices

2016-12-27 Thread Chris Bartos
from logging out. I hope that works! Chris On Friday, April 22, 2016 at 9:09:13 AM UTC-4, Deep Shah wrote: > > I am new to Django. I want to know how will authentication work on mobile > apps. How do I keep the user logged in on my mobile apps and not make them > login every time? Is

Re: Django REST Authenticate with Session in external app

2016-12-27 Thread Chris Bartos
Django view. I'd be interested in hearing how Session Authentication is working for you and if you need help don't hesitate to ask questions about Token Authentication or OAuth2 Authentication. Chris On Sunday, September 11, 2016 at 5:19:15 PM UTC-4, flaudizio wrote: > > Hi g

Re: Form Validation Error NOT Raised When Form Is Submitted

2016-12-22 Thread Chris Kavanagh
validate yourself (the string > inside the raise ValidationError call), you can return that. > > On Thu, Dec 22, 2016 at 11:49 PM, Chris Kavanagh > wrote: > >> Yeah, I was wrong Vijay. For some odd reason I thought the >> ValidationError would catch it BEFORE submitted.

Re: Form Validation Error NOT Raised When Form Is Submitted

2016-12-22 Thread Chris Kavanagh
nd > adding values to form.errors) > > On Thu, Dec 22, 2016 at 5:14 PM, Chris Kavanagh > wrote: > >> I have a model form called *"ContactForm" *that has an email field. I >> created a custom* forms.ValidationError* in *"clean_email"* method >>

Form Validation Error NOT Raised When Form Is Submitted

2016-12-22 Thread Chris Kavanagh
I have a model form called *"ContactForm" *that has an email field. I created a custom* forms.ValidationError* in *"clean_email"* method which checks to see if the email is already in the database , however it's never raised on submit. When submit is called, the view runs and I get the error

How modify Django to set URLs with decorators on the view functions like Flask? (rather than using urls.py)

2016-09-09 Thread Chris Seberino
Flask has a neat design where instead of having a urls.py file they bind URLs to view functions with decorators. Possible to do something similar with Django? What modifications would be needed? Thanks, cs -- You received this message because you are subscribed to the Google Groups "Django

Re: "add another" for inline in admin disappeared in 1.10

2016-08-24 Thread Chris Gray
orial. More specifics about > how to reproduce the issue are needed. > > On Thursday, August 11, 2016 at 4:55:04 PM UTC-4, Chris Gray wrote: >> >> After upgrading from 1.9 to 1.10, I noticed that the "add another" link >> for inline elements in the admin interfa

How make Django sites look as professional as WordPress just as easily as WordPress is easy?

2016-08-14 Thread Chris Seberino
tool. Nevertheless, if that is the answer I'll consider it. Is that the magic bullet I'm looking for or is there something else? Thanks! Chris -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

"add another" for inline in admin disappeared in 1.10

2016-08-11 Thread Chris Gray
After upgrading from 1.9 to 1.10, I noticed that the "add another" link for inline elements in the admin interface no longer displays. I reverted to 1.9 and the links came back. It looks like the code embedded in the page is totally different between 1.9 and 1.10. -- You received this messag

Re: Stripe Not Returning Token (test mode)

2016-06-18 Thread Chris Kavanagh
ta-allow-remember-me="true" > > data-email="{{ summary_dict.email_address }}" > > data-locale="auto" > > data-label="Register with Card" > > data-zip-code="true"> > > > > >

Re: Stripe Not Returning Token (test mode)

2016-06-17 Thread Chris Kavanagh
or None) > if request.method == 'POST' and stripe_form.is_valid(): > token = stripe_form.cleaned_data['stripeToken'] > customer = stripe.Customer.create( > description=summary_dict['email_address'], > source=token >

Re: Stripe Not Returning Token (test mode)

2016-06-17 Thread Chris Kavanagh
Oh, never mind, you're using stripe checkout. My bad. Let me try it your way. On Fri, Jun 17, 2016 at 9:33 PM, Chris Kavanagh wrote: > Kristofen, could I see the template? The javascript/jQuery you're using in > the template specifically? > > I think that's where th

Re: Stripe Not Returning Token (test mode)

2016-06-17 Thread Chris Kavanagh
;stripeToken'] > customer = stripe.Customer.create( > description=summary_dict['email_address'], > source=token > ) > > > -- > *From: *"Chris Kavanagh" > *To: *"Django users" > *Sent: *Th

Re: Stripe Not Returning Token (test mode)

2016-06-17 Thread Chris Kavanagh
27;] > customer = stripe.Customer.create( > description=summary_dict['email_address'], > source=token > ) > > > -- > *From: *"Chris Kavanagh" > *To: *"Django users" > *Sent: *Thursday, June 16

Stripe Not Returning Token (test mode)

2016-06-16 Thread Chris Kavanagh
ps://stripe.com/docs/custom-form I've double checked the keys to make sure they are correct, and it's definitely in test mode. From the examples & tutorials I've looked at, I don't see a reason it shouldn't be working. Any help is greatly appreciated, thanks Chris. A

Re: Django API CSRF Issues - Need Help

2016-05-21 Thread Chris Troutner
That's really interesting. Hmm... Thanks for the feedback. On Sat, May 21, 2016 at 9:03 AM, Michal Petrucha < michal.petru...@konk.org> wrote: > On Sat, May 21, 2016 at 08:55:04AM -0700, Chris Troutner wrote: > > Yep, no luck. I got the cookie plugin integrated, bu

Re: Django API CSRF Issues - Need Help

2016-05-21 Thread Chris Troutner
ersView.js And scroll down to the approveUser function, you can see a section marked in comments labeled VIRTUAL FORM. I'm doing to same xhr.setRequestHeader('X-CSRFToken', csrftoken); instruction in Francois' example. The POST submission still results in a 403 Forbidden error. On

Re: Django API CSRF Issues - Need Help

2016-05-21 Thread Chris Troutner
will have better luck at retrieving the CSRF token for my logged in user. On Sat, May 21, 2016 at 8:25 AM, bobhaugen wrote: > Chris, I understood you were logged into the django system when you tried > these posts. Correct? I thought that would cover authentication thru DRF. > But

Re: Django API CSRF Issues - Need Help

2016-05-21 Thread Chris Troutner
I linked to that page in the original posting. That page describes what we're trying to do, but there seems to be a disconnect between what is specified and what is actually happening. As near as I can tell, I have satisfied the CSRF requirements documented on that page, but I still can't seem

Re: Django API CSRF Issues - Need Help

2016-05-21 Thread Chris Troutner
nd JavaScript to interact with the Django server side API and the key to doing that is to pass in the CSRF token in a way that makes Django happy. So far, I haven't figured out how to do that. -Chris On Saturday, May 21, 2016 at 2:16:17 AM UTC-7, Daniel Roseman wrote: > > On Saturday, 2

Django API CSRF Issues - Need Help

2016-05-20 Thread Chris Troutner
Hey all, This is my first time posting to the group. I'm working with Bob Hagan on the Network Resource Planning (NRP) project . The platform runs on Django and he's been using the REST API app to open up ports to some of the

Re: Can't get initial value into form correctly.

2016-05-15 Thread Chris Kavanagh
now you're probably busy, but if you have the time and don't mind, I love to learn. . . Thanks, Chris. On Sun, May 15, 2016 at 1:55 AM, Stephen J. Butler wrote: > It's now a dict, so you have to index into it. The for loop won't > magically know which element of add_produ

  1   2   3   4   5   6   7   8   9   10   >