You need to route by URL - see the example in the docs here, including how
to fallback to Django views:
https://channels.readthedocs.io/en/latest/topics/routing.html#urlrouter
Andrew
On Tue, Oct 30, 2018 at 5:05 AM Zhiyu (Drew) Li wrote:
> Thanks! Another question it seems once I manually
You may be interested in django-improved-user, as it provides an email-based
User model.
https://pypi.org/project/django-improved-user/
Full disclosure: I am one of the original authors. If you have any trouble with
the package or documentation, please open an issue!
Andrew
https
t add it and then
use it for the new bits you need it for, basically.
Andrew
On Sun, Nov 4, 2018 at 1:16 PM wrote:
> Greetings y'all!
>
> I'm looking for recommendations regarding adding Channels to an existing
> Django 1.11 application.
>
> Every guide I'
Your assumptions are correct. The only extra thing to be aware of is that
some Django interactions (like the Channels Auth middleware) need to do
database connections and thus have to launch into a subthread for that, but
that's also managed.
Andrew
On Tue, Nov 6, 2018 at 4:41 AM Zhiyu (Dre
I'm afraid I don't have an easy example to hand - maybe someone else does.
It sounds like you might have something odd in your settings, models.py, or
other files that load at startup.
Andrew
On Tue, Nov 6, 2018 at 5:31 AM wrote:
> even down to running two different servers for
Channels doesn't take over at all unless you configure an async consumer.
To make sure it's working I'd recommend writing a single async consumer,
and running a test against that to ensure it works.
Andrew
On Wed, Nov 7, 2018 at 1:11 PM Zhiyu (Drew) Li wrote:
> Hi there,
Hey,
I am trying to get my app running on a new Mac. It's on Mohave, python
2.7, here is the stack trace. https://dpaste.de/m9WO . We are getting
Library not loaded: libssl.1.0.0.dylib when trying to connect to remote
mysql database.
Thanks!
--
You received this message because you are sub
Are you using Channels 1 or Channels 2? And which channel layer are you
using?
Andrew
On Sun, Nov 11, 2018 at 5:05 AM Parsa Banihashemi <
parsa.banihash...@gmail.com> wrote:
> Hi,
> I have a simple sync consumer which receives websocket messages from the
> client, and each ti
rashed and it'd hang forever!
Andrew
On Mon, Nov 12, 2018 at 3:43 PM Zhiyu (Drew) Li wrote:
> Hi there,
>
> I was trying to write a test for a consumer. It is just a very simply
> AsyncHttpConsumer subclass that awaits on asyncio.sleep(3) and returns a
> "OK&q
I've never tried using the async-to-sync stuff with multiprocessing -
first, I'd try removing that and see if it still works (just run from a
management command or script directly).
If it still fails, I'd suggest running a redis MONITOR to see if any
traffic makes it to Redis at a
What sort of hook would you be imagining? The DB connection stuff is deep
inside Django itself, rather than in Channels, so I'm not sure what
sensible top-level thing we could provide that would make sense.
Andrew
On Tue, Nov 13, 2018 at 2:16 PM wrote:
> Django-tenants is a package to
n Channels is currently only one maintainer, any increase in
surface area is unlikely unless there's a very good reason. Channels' auth
stuff is just standard Django code + settings for the most part, so there's
already bits you can reuse to do most of the work.
Andrew
On Tue, Nov 1
You cannot use gunicorn to run WebSockets or other async code - you need an
ASGI server, like Daphne or uvicorn. Switch to one of those and it should
start working.
Andrew
On Fri, Nov 16, 2018 at 8:11 PM Robert Fox wrote:
> I am working on a project using Django and Channels 2.1.1. Everyth
(remember the view decorators!).
If you're not sure, start with a FV, and then switch to a CBV or GCBV if
appropriate (as complexity goes up or when you realize you can use a GCBV).
Hope that helps,
Andrew
https://jambonsw.com
https://django-unleashed.com
--
You received this message because
;t remember why it's there.
I suggest you remove fd=0 and see if that then works with multiple
processes.
Andrew
On Mon, Nov 26, 2018 at 3:10 PM Zhiyu (Drew) Li wrote:
> Hi there,
>
> I am trying to migrate a tornado project to django channel2. I have moved
> all essential p
I've seen a lot of people have a similar error but I'm never sure what
causes it - that said, I generally advise them to check their Redis logs to
see if Redis is OK, as that could cause this?
Andrew
On Mon, Dec 17, 2018 at 11:36 AM wrote:
> I had an error while build a chatroom
This is a general problem with installing compiled Python packages on
Windows. You'll need to install the compiler as outlined here:
https://wiki.python.org/moin/WindowsCompilers (or search for "python visual
c++ 14")
Andrew
On Sat, Dec 22, 2018 at 11:23 AM shiva kumar
wrote:
&
You appear to have missed an "await" before "self.send" - could that be the
cause?
In general, the best thing to do if things seem to "block" is to set the
environment variable PYTHONASYNCIODEBUG=1 and Python will warn you if
anything blocks for too long and seem
hings.
If you don't want to deal with all of this, use the SyncConsumer variants
of everything and/or normal django views which will safely run stuff in
threads for you.
Andrew
On Mon, Dec 24, 2018 at 7:24 PM Akshay Surya wrote:
> Sorry for that Actually in my code I did use await bef
You should use an ASGI server (uvicorn/daphne) with an SSL-terminating
server (e.g. nginx) in front of it and proxying to it. Django-sslserver is
a WSGI-based server and so can't support WebSockets.
Andrew
On Tue, Dec 25, 2018 at 4:44 PM wrote:
> How can I use channels with
Hello all,
I am trying to use Patreon's API Version 2 with Django 3.1. I
read: https://docs.patreon.com/#third-party-libraries and found that
Patreon supported the django-allauth library. I installed the library by
following the instructions
of: https://django-allauth.readthedocs.io/en/l
> EXACTLY what you are getting a response from.
>
> Do you want to use Patreon as a login account provider or do you want to
> do something else?
>
> Regards,
>
> Andréas
>
>
> Den mån 26 okt. 2020 kl 20:47 skrev Andrew Stringfield <
> thefund...@gmail.com&
t 9:28:38 AM UTC-4 Ryan Nowakowski wrote:
> On Mon, Oct 26, 2020 at 12:16:03PM -0700, Andrew Stringfield wrote:
> > Hello all,
> >
> > I am trying to use Patreon's API Version 2 with Django 3.1. I
> > read: https://docs.patreon.com/#third-party-libraries and found t
I almost forgot. I have checked my settings in Django and Patreon and the
URL redirect matches for all that I can see. I have an idea to try and use
the testing framework to see what values I am passing to Patreon.
On Wednesday, October 28, 2020 at 7:53:42 AM UTC-4 Andrew Stringfield wrote
I would not be shocked.
On Wednesday, October 28, 2020 at 9:55:15 AM UTC-4 Ryan Nowakowski wrote:
> The patreon error you're seeing might be a different redirect URL than the
> login redirect URL. i.e. these may be two different problems.
>
>
>
>
> On October 28, 2
You guys are awesome! I will try these solutions later this evening.
On Wednesday, October 28, 2020 at 11:30:56 PM UTC-4 oladipo...@gmail.com
wrote:
> Hello Sir,
> You need to set the LOGIN_REDIRECT_URL in your settings.py file.
>
> On Mon, Oct 26, 2020, 8:47 PM Andrew Stringfie
This may be related to https://github.com/django/asgiref/issues/251 - what
version of asgiref are you running?
Andrew
On Tue, Apr 6, 2021, at 9:43 AM, kradem wrote:
> > 500 Internal Server Error
> > Exception inside application.
> > Daphne
>
> This error raises every
d post
it here?
Andrew
On Tue, Apr 6, 2021, at 9:56 AM, kradem wrote:
> Thank you very much for a quick response.
>
> Yes, that's the problem:
>
> asgiref 3.3.2
>
> When I downgrade it to 3.3.1 Django complains ("django 3.2 requires
> asgir
Aha, glad to hear it! My apologies that we didn't catch that one before release
yesterday.
Andrew
On Tue, Apr 6, 2021, at 10:01 AM, kradem wrote:
> Stop the press!! The 3.3.3 version is published in PyPi and after installing
> it it all works well! :)
>
> Thank you!
> Dan
The tracebacks are there somewhere, you might have to look at the raw HTTP
response in the browser to see them.
Andrew
On Tue, Apr 6, 2021, at 10:18 AM, kradem wrote:
> I'm afraid a "success" was caused by the browser cache or something similar,
> the 3.3.3 version d
This is probably this error:
https://github.com/django/asgiref/issues/251#issuecomment-814337170 - I'm going
to switch the error to a warning and we'll see if that helps, then Daphne can
have a fix added at a non-emergency pace.
Andrew
On Tue, Apr 6, 2021, at 12:19 PM, kradem wr
ey will all result in you blocking the async
thread while the ORM query runs, which would be disastrous in production.
My apologies for not getting this in for the original async view patch - I had
forgotten converters ran in the URL resolver.
Andrew
On Sat, Jun 19, 2021, at 12:31 A
The example you presented should Just Work - that error generally only occurs
if you return an un-awaited coroutine, which if you're just returning a
response, should be impossible.
What version of Python and Django are you running?
Andrew
On Thu, Aug 12, 2021, at 11:03 AM, Steven Mapes
I am interested
On Mon, Feb 19, 2024, 9:33 AM Theresa Taye wrote:
> I am interested
>
> On Sun, Feb 18, 2024, 5:48 PM SURAJ TIWARI wrote:
>
>> 🚀 Join Our Django WhatsApp Bulk Messaging Project!
>>
>> 👋 Hello everyone,
>>
>> Are you looking for an exciting opportunity to gain hands-on experience
https://pypi.org/project/django-ip-restriction/
Try just searching up “Django ip restrict” or “django ip restriction” or
“django ip block”
There are plenty of options out there. As for why this might be needed, you
can blame China with all these bot attacks on websites :P It can also be
for other
Two options:
1) Save the JSON files and link it with a FileField
2) Use PostgreSQL’s Django-specific JSONField.
On Sat, Aug 10, 2019 at 9:46 AM Suraj Thapa FC
wrote:
> How can I linked a JSON file with my db... Json files contains the key
> value pair of the user data..
> If the id in the db a
You would probably need AJAX calls. I think there’s a package called
Django-autocompletelite which can help you with this. So, in your HTML, you
can use use AJAX to see when a user types the @ character with a single
letter and then show a box with some usernames with that.
On Sat, Aug 10, 2019 at
I suppose in a view, you can write something along these lines:
import json
from os import path
from django.conf import settings
def index(request):
if request.method == ‘POST’:
form = YourForm(request.POST)
if form.is_valid():
field1 = form.cleaned_data.get(‘fi
SyncConsumer isn't async - it runs inside a separate synchronous thread.
You'll need to get the event loop from the other thread and use
call_soon_threadsafe instead!
Andrew
On Wed, Aug 14, 2019 at 6:59 PM Dan Merillat wrote:
>
> I have an application that's 99% using the
It should be fine, but you will need to be careful - there's a lot of
side-effects with run_in_executor you should be aware of like the way
exceptions propagate (Django won't handle them right for you) and the
possibility of deadlock.
Andrew
On Fri, Oct 18, 2019 at 11:27 AM BR wrote:
Hello all,
I am trying to access Dictionary values directly. Here is my view:
def unique_key_query(request, unique_key):
unique_key_object =
simpleformmodel.objects.all().filter(id=unique_key)
context = {'unique_key_object': unique_key_object}
return render(request,
}}
{% endfor %}
and just have:
{{ unique_key_object.filename }}
On Tuesday, November 19, 2019 at 10:59:07 PM UTC-5, Suraj Thapa FC wrote:
>
> Return the unique key object... Like
> return render(request, 'abc.html',unique_key)
>
> On Wed, 20 Nov 2019, 9:18 am And
Okie-dokie. 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
http
I have not! I did see something about that on a website. Would it go
something like: dictionary_name.fieldname.0 ? I will try it out later today.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receivi
I’m not sure what you mean by content management, so I’m gonna take a
guess: website builder like Weebly or Wix. You need a NoSQL database,
completely unstructured data. Kind of like a crime file drawer with folders
dedicated to each case and all its evidence. Some folders only have one
piece of ev
What is your major? Usually tying in what you know, how you behave, and
importantly how you think contributes to a certain type — or even workflow
or stack — of learning in CS.
On Mon, Jan 20, 2020 at 1:52 AM Jack Lin wrote:
> I’m not sure what this gonna be in the future. I think I’m just exlpo
Hi Kimberly,
Django is mostly for website development. If you can tell us a little bit
about your model and some plans, that would be great. I’d love to help
another Harvard student in their endeavors since many give up after
graduating grad school (especially those undergrads...). Again, let us k
Hi Kimberly,
I’ve taken a look at your preschool and school program, SNACS. Early in my
teen years, I helped set up [certain state in US] for an educational
bounce-back from zero funding to minimal, but the kid’s passions returned.
Django is a website framework, and I don’t think that’s what you'r
ow you think contributes to a certain type — or even
> workflow or stack — of learning in CS. “
> "tying in what you know, how you behave," You mean like do some projects
> for my own area?
>
>
> 在 2020年1月21日 於 上午12:47:09, Andrew C. (andreke12...@gmail.com) 寫下:
>
>
gt; workflow or stack — of learning in CS. “
> "tying in what you know, how you behave," You mean like do some projects
> for my own area?
>
>
> 在 2020年1月21日 於 上午12:47:09, Andrew C. (andreke12...@gmail.com) 寫下:
>
> What is your major? Usually tying in what you know, h
Usually, something that has multiple versions could be in an autoincrement
field as the primary key. Then, in a JSONB field with GIN index (since
you’re using PostgreSQL), you would have a dict of each version, like this:
{
“1”: { # beginning of article 1
“versions”: {
“1”: {
“title”: “Blah1”,
“t
Try Quill.js. If you google Quill.js and Quill.js Django, I believe
you'll find the Django package that goes along with that text editor.
Really, you only need the Quill.js code for your template. WYSIWYG is
just a user typing in HTML without realizing it. Just save the HTML
(because the rest is es
Hi Larry,
Your problem is the Python version - 3.5 is somewhat old (but most
importantly, was still a very rough release for asyncio) and isn't
supported by any current release of asgiref/channels for that reason. If
you are able to upgrade that, I very much recommend it.
Andrew
On Sat, F
rmation on using Unicode with
Django 0.96?
Thanks for your help.
Peace,
Andrew
--
=======
Andrew D. Ball
[EMAIL PROTECTED]
Software Engineer
American Research Institute, Inc.
http://www.americanri.com/
--~--~-~--~~~---~--~~
You received th
We're working on testing things out on the trunk now.
It's just a case of my being very hesitant to use anything
that's not officially a stable release. However, it looks
like in this case, using the trunk is the right thing to do.
Thanks for all of y'all's help!
Peac
Setting the default character set for the test database
is now possible!
http://code.djangoproject.com/changeset/5380
Peace,
Andrew
On Wed, Apr 09, 2008 at 03:02:05PM -0400, Karen Tracey wrote:
> On Wed, Apr 9, 2008 at 2:00 PM, Andrew D. Ball <[EMAIL PROTECTED]> wrote:
>
>
t; -- an SMTP server on
a VM that delivers mail to any email address to a local mail
spool, so the unit tests' sending emails won't hurt anything.
Peace,
Andrew
--
===
Andrew D. Ball
[EMAIL PROTECTED]
Software Engineer
American Research Institute, Inc.
http:/
It turns out that this is by design:
http://docs.djangoproject.com/en/dev/topics/testing/#e-mail-services
This behavior is fine -- even better than the SMTP
"black hole" setup that I have.
Peace,
Andrew
On Tue, Aug 19, 2008 at 07:21:52PM -0400, Andrew D. Ball wrote:
> I've
Is there a convenient way to get all objects related to
a given model instance? I want to check for objects
that would be deleted with a cascading delete before
actually performing a deletion.
Peace,
Andrew
--
===
Andrew D. Ball
[EMAIL PROTECTED]
Software
I don't find django-announce listed at the Django
community page here:
http://www.djangoproject.com/community/
Any reason why it's not included beside django-users
and django-developers?
Peace,
Andrew
--
=======
Andrew D. Ball
[EMAIL PROTECTED]
Softwar
ze this idea.
Thanks for your help,
Andrew
--
=======
Andrew D. Ball
ab...@americanri.com
Software Engineer
American Research Institute, Inc.
http://www.americanri.com/
--~--~-~--~~~---~--~~
You received this message because you are
f the usernames of our clients' own systems.
Is there any way to work around this? We have already implemented our own
user model, but I would like to use the standard Django one to make integration
with apps like Satchmo more feasible.
Peace,
Andrew
--
===
Andr
because it inherits all of them from the base class?
Yes.
>
>
> >
--
===
Andrew D. Ball
ab...@americanri.com
Software Engineer
American Research Institute, Inc.
http://www.americanri.com/
--~--~-~--~~~---~--~~
You rec
Hello guys!
I'v got such problem with development server. I run any app on my dev
server and it is stuck on Set Cookie response:
GET / HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/msword, application/vnd.ms-
powerpoint, */*
Accept-La
:
> On Mon, 2009-05-04 at 15:47 -0700, Andrew Se. Fefelov wrote:
> > Hello guys!
>
> > I'v got such problem with development server. I run any app on my dev
> > server and it is stuck on Set Cookie response:
>
> Define "stuck". What happens?
>
&g
Hello guys!
Using manage.py loaddata I got error
RuntimeError: maximum recursion depth exceeded
Full text on: http://dpaste.com/46940/
Don know what to do. Help pls!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
ke
to be able to do something like
DATABASE_CHARSET="UTF-8"
DATABASE_STORAGE_ENGINE="InnoDB"
in settings.py .
Peace,
Andrew
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
nmentError, "Environment variable %s is undefined." %
ENVIRONMENT_VARIABLE
EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is undefined.
Anybody know how to do this?
Thanks for your help.
Peace,
Andrew
=
Andrew D. Ball <[EMAIL PROTECTED]>
sof
Perfect! Thanks,
Andrew
On Mon, Apr 28, 2008 at 03:18:45PM -0700, [EMAIL PROTECTED] wrote:
>
> http://www.b-list.org/weblog/2007/sep/22/standalone-django-scripts/
>
> On Apr 28, 5:10 pm, "Andrew D. Ball" <[EMAIL PROTECTED]> wrote:
> > Greetings.
> >
>
want to involve cookies or HTTP request headers
at all. Does anyone have a good way to do this?
Peace,
Andrew
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, s
would have
liked to have been able to see the docs.
Thanks for your help.
Andrew
--
===
Andrew D. Ball
[EMAIL PROTECTED]
Software Engineer
American Research Institute, Inc.
http://www.americanri.com/
--~--~-~--~~~---~--~~
You received
e
new database.
I'm using Django 0.96.1, and 'python manage.py test'
will complain unless the production database
is created and I've run 'manage.py syncdb'.
Any idea why?
Peace,
Andrew
--
===
Andrew D. Ball
[EMAIL PROTECTED]
Softwa
Hi,
Have you had any solutions to this yet?
--
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, sen
Please add me also, i am interested. my whatsapp: +6282216185302
On Mon, Mar 18, 2024 at 6:34 PM Sang wrote:
> Looks interesting. I'm on WhatsApp @ 9937826218. Please let's catch up
> there.
>
> On Mon, Mar 18, 2024, 22:56 1001_prabhjot Singh
> wrote:
>
>> so i am working on a full stack e-comm
901 - 974 of 974 matches
Mail list logo