Getting Django Channels working with NewRelic

2023-11-17 Thread Tim Nelson
I am trying to get NewRelic monitoring my ASGI code written in Django Channels. Most notably, this line of code from their examples should create a NewRelic transaction and start monitoring all async activity. channel_layer = newrelic.agent.ASGIApplicationWrapper(get_default_application())

Channels SyncConsumers locking up Uvicorn/Websockets

2023-06-19 Thread Tim Nelson
We have had the occasional case where it appears a given SyncConsumer hangs. These seem to starve Channels of ASGI threads, eventually breaking all clients that are trying to send or connect. Is there any way to build in a timeout, meaning if a SyncConsumer doesn't finish its request in (say) 5

Hanging SyncConsumers taking down ASGI processing

2023-04-28 Thread Tim Nelson
I am chasing a database deadlock issue in my application. What appears to be happening is my SyncConsumers are eating up all the ASGI threads because they are hung and websocket connections start failing. Is there a way to add a uWSGI "harakiri" like functionality to SyncConsumers to defend

Multi-tenant SSO that supports OpenID and MS Azure AD

2022-11-07 Thread Tim Nelson
I am looking for a Django SSO package that supports OpenId and Azure AD with multi-tenant support. My sense is I am going to have to roll my own by forking the best of breed SSO's and adding multi-tenant support to them. Is my assessment correct? Thanks. -- You received this message because you

Re: collectstatic files chown'ed by root

2022-02-16 Thread 'Tim' via Django users
LOT of reading around that if you want to dig into > it. IMO, its not a "workaround" if you just actually do need to work with > multiple permissions at different points in a process. > > HTH > Derek > > > > > On Monday, 14 February 2022 at 16:05:33 UTC+2

collectstatic files chown'ed by root

2022-02-14 Thread 'Tim' via Django users
e deploying Django with docker and being mindful of security has come across this - Any hints about why collectstatic is owned by root? Is this a bug? Should I add additional details? Thanks for any tips! Tim -- You received this message because you are subscribed to the Google Groups "Djang

Re: Automatic subdomain for each user

2021-12-29 Thread Tim Chase
On 2021-12-29 15:02, Sherif Adigun wrote: > I am faced with a requirement where each user is required to use > the application under his own subdomain. Whenever a user registers, > he gets username.domain.com and he can add staff, manage reports, > etc under his subdomain. > > What is the best

Re: How can I scale my application to different teams ?

2021-11-30 Thread Tim Chase
On 2021-11-30 02:11, Kumar Gaurav wrote: > How Can I group the users and show the contents related to them > only. You presumably have some sort of User model and have added some sort of Group model. Depending on your business logic, either a User can belong to one-and-only-one group in which

Re: Initial value is not displayed on forms.DateField with widget input type="date" when localized

2021-10-27 Thread Tim Graham
You can read https://code.djangoproject.com/ticket/33113 for some details on this issue. On Wednesday, October 27, 2021 at 5:07:00 AM UTC-4 binoy...@gmail.com wrote: > Hi > I have a form field forms.DateField and widget as follows > > class CustomDateInput(forms.DateInput): > input_type =

2.2.* to 3.2.5 update: jsonb deserialisation is broken!

2021-08-01 Thread Tim Richardson
Database is postgresql 12 psycopg2-binary==2.8.6 \ The bug occurs when I move from django 2.2.* to 3.2.5 A raw sql query is now behaving differently. A result that was previously deserialised from a jsonb field into a python dict now returns a string (and breaks things). this is a simplifed

Re: can Django replace PHP ?

2021-06-28 Thread Tim Chase
On 2021-06-27 21:20, Krishna Adhikari wrote: > *can we solve all kinds of web application problems with Django > without learning PHP ?? * > *or PHP also recommended.* For just about aspect, either they're interchangeable, or I find that Python/Django wins (readability, library consistency,

FastCGI with recent Django?

2020-12-13 Thread Tim Chase
At one point in history long past, Django 1.8 supported FastCGI via flup https://docs.djangoproject.com/en/1.8/howto/deployment/fastcgi/ but it was slated to be removed in 1.9 and there seem to be no further docs I can disinter about running Django in a FastCGI environment (all other resources I

Re: Oracle 12.0.1 admin not working with django 3+

2020-06-24 Thread Tim Graham
I'm not sure if this is the cause of your issue but Django 3.0 officially supports Oracle 12.2 and higher: https://docs.djangoproject.com/en/3.0/ref/databases/#oracle-notes On Tuesday, June 23, 2020 at 10:35:24 PM UTC-4, ashish goyal wrote: > > Ho All, > > Have created lot of stuff in app,

Re: cx_Oracle.DatabaseError: ORA-00910: specified length too long for its datatype

2020-06-19 Thread Tim Graham
The relevant migration is: https://github.com/divio/django-cms/blob/d6cabc49f016dd9a16f91440da9fb6790d27c2ae/cms/migrations/0008_auto_20150208_2149.py It increases the length of a CharField to 2048 characters which seems to be longer than Oracle supports. As far as I know, Django CMS isn't

Re: Best way to get a PR Review?

2020-06-16 Thread Tim Graham
Hi Matt, Your patch is in the "Patches needing review" queue (along with 33 others issues) at https://dashboard.djangoproject.com/. Reviewing patches isn't a task limited to members of the Django team. Anyone from the community is welcome to review patches and mark the ticket as "patch needs

Re: Possible Django bug I am considering raising

2020-06-04 Thread Tim Graham
You can try to find the commit that introduced the issue: https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression On Thursday, June 4, 2020 at 11:25:09 AM UTC-4, OwlHoot wrote: > > Hi all > > I believe the issue I have enquired about on the following

Re: Possible Bug? AttributeError: 'HttpResponse' object has no attribute '_resource_closers'

2020-05-30 Thread Tim Allen
sinking a lot more time here. On Saturday, May 16, 2020 at 5:02:32 PM UTC-4, jlgimeno71 wrote: > > > > On Sat, May 16, 2020 at 12:06 PM Tim Allen > wrote: > >> I posted this to Stack Overflow first, thinking it might be a problem >> with `mod_wsgi`, but people usin

Re: GeoDjango with MySQL8

2020-05-25 Thread Tim Graham
Hi, you might have better luck getting an answer on the GeoDjango mailing list: https://groups.google.com/forum/#!forum/geodjango On Monday, May 25, 2020 at 11:06:26 AM UTC-4, Utkarsh Bansal wrote: > > I am facing problems while trying to use GeoDjango (v2.2) with MySQL 8.0.19 > > I created a

Possible Bug? AttributeError: 'HttpResponse' object has no attribute '_resource_closers'

2020-05-16 Thread Tim Allen
I posted this to Stack Overflow first, thinking it might be a problem with `mod_wsgi`, but people using Gunicorn have seen the issue too. Here's a link to the question on Stack Overflow:

Re: Channels/Daphne offloading SSL Certs to AWS ELB fails to establish socket

2020-04-20 Thread Tim Nelson
Well if you want the clients IP logged or need to do something with it on the request: set_real_ip_from 0.0.0.0/0; real_ip_header X-Forwarded-For; real_ip_recursive on; On Mon, Apr 20, 2020 at 5:55 PM Shaheed Haque wrote: > > > On Mon, 20 Apr 2020 at 21:54, Filbert wrote: > >>

Re: stack

2020-04-20 Thread Tim Wilson
s+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CALFh0xExmi-KVt%2Bh0uxwUG_4MC94Ev0uGMVzEkfMXPbAk8LCxA%40mail.gmail.com > > <https://groups.google.com/d/msgid/django-users/CALFh0xExmi-KVt%2Bh0uxwUG_4MC94Ev

Re: Capture URL values in a CBV

2020-04-17 Thread Tim Johnson
().get_context_data(**kwargs)         # You your stuff         context['my_pk'] = self.kwargs['pk']         return context -- Tim tj49.com -- 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: Capture URL values in a CBV

2020-04-17 Thread Tim Johnson
sure the solution is very easy, but I obviously am missing something. thanks On 4/16/20 7:26 AM, Tim Johnson wrote: On 4/15/20 7:24 PM, Gavin Wiener wrote: Hey Tim Hello Gavin: Thank you for your prompt reply. The bigger question is, what are you trying to achieve? I gotta know. I'm

Re: Capture URL values in a CBV

2020-04-16 Thread Tim Johnson
On 4/15/20 7:24 PM, Gavin Wiener wrote: Hey Tim Hello Gavin: Thank you for your prompt reply. The bigger question is, what are you trying to achieve? I gotta know. I'm a retired programmer with 19 years doing CGI. Wrote and implemented my own framework. First in C, than C++ then rebol

Capture URL values in a CBV

2020-04-15 Thread Tim Johnson
new to me :) thanks -- Tim tj49.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

Re: user visit count

2020-04-15 Thread Tim Wilson
I'm planning to use django-hitcount too, but please be aware that it's not yet compatible with Django 3.x. There's a patch that needs to be applied and a release forthcoming that should take care of it. -Tim On Wed, Apr 15, 2020, at 4:38 AM, Omkar Parab wrote: > Django hit count pack

Re: Name clashes on custom commands

2020-04-10 Thread Tim Johnson
Ah. I see the logic of it. Similar to elisp, but different also. Thank you On 4/10/20 12:44 AM, Andréas Kühne wrote: Hi Tim, You need to make sure that your commands are unique in your project. Otherwise like you have discovered one overwrites the other. This is actually a good thing though

Name clashes on custom commands

2020-04-09 Thread Tim Johnson
articles_sample.py and pages_sample.py -- Tim tj49.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.co

Re: ORM from the command line

2020-04-09 Thread Tim Johnson
odesílatel Tim Johnson <mailto:t...@akwebsoft.com>> napsal: Thank you Andréas. I have come across that too, after my OT. This is definitely what I was looking for. cheers On 4/9/20 2:05 AM, Andréas Kühne wrote: Hi Tim, What you probably should do is use

Re: ORM from the command line

2020-04-09 Thread Tim Johnson
Thank you Andréas. I have come across that too, after my OT. This is definitely what I was looking for. cheers On 4/9/20 2:05 AM, Andréas Kühne wrote: Hi Tim, What you probably should do is use a custom command on the manage.py command interface. You till then get access to all of djangos

ORM from the command line

2020-04-08 Thread Tim Johnson
github.com/KhaledElAnsari/django-truncate and that might be complicated. Comments are welcome thanks -- Tim tj49.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 em

Re: Mobile friendly admin

2020-04-02 Thread Tim Graham
What version of Django are you using? https://github.com/elky/django-flat-responsive is an extension for the Django admin that makes the interface mobile-friendly. It's part of Django 2.0 and later. On Wednesday, April 1, 2020 at 4:02:57 AM UTC-4, guettli wrote: > > I know there a several

Where to source a very large data structure.

2020-03-03 Thread Tim Johnson
= 3.7.2 django.VERSION = (2, 2, 6, 'final', 0) thank you -- Tim tj49.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...@google

Re: Is this mistake in utils.functional?

2020-02-06 Thread Tim Graham
The code is equivalent to: res = self.func(instance) instance.__dict__['self.name'] = self.func(instance) (except that self.func(instance) isn't called twice like it would be in this version) On Thursday, February 6, 2020 at 7:39:47 AM UTC-5, Akira Furude wrote: > > Currently I'm working on my

Re: Where to set the DATABASE_URL environment variable on Heroku

2019-12-07 Thread Tim Johnson
On 12/6/19 9:09 PM, Jorge Gimeno wrote: On Fri, Dec 6, 2019 at 5:40 PM Tim Johnson <mailto:t...@akwebsoft.com>> wrote: Despite the voluminous Heroku documentation I am unable to establish where to initialize the DATABASE_URL that would establish credentials for my

Where to set the DATABASE_URL environment variable on Heroku

2019-12-06 Thread Tim Johnson
am not clear where this initialization code should live would it be in the procfile? If so, what process should I use. Release? Worker? OR Would it be in an .env file? Using django 2.1.5, python 3.7 examples welcome :) thanks -- Tim tj49.com -- You received this message because you

Re: CockroachDB & Django

2019-12-05 Thread Tim Graham
Cockroach Labs engaged me to work on the CockroachDB backend for Django. django-cockroachdb 2.2 alpha 2 (for Django 2.2.x) and 3.0 alpha 1 (for Django 3.0.x) are now available. These versions pass much of the Django test suite and are ready for real world testing. Be aware that the latest

Re: Fixtures for django auth groups

2019-12-03 Thread Tim Graham
Take a look at https://docs.djangoproject.com/en/stable/howto/initial-data/. On Tuesday, December 3, 2019 at 10:31:01 AM UTC-5, Arulselvam K wrote: > > I want to create fixtures for auth groups to get some preloaded auth > groups. Kindly educate me on how to create fixtures fixtures for built in

Re: no such table: main.auth_user__old

2019-12-01 Thread Tim Graham
If you're using Django 2.1, try upgrading to the latest Django 2.1.x (2.1.14 as of this writing). You should always use the latest point release to get the most recent security and bug fixes. See https://stackoverflow.com/questions/53637182/django-no-such-table-main-auth-user-old On

Re: Choosing MySQL or PostGres on Heroku

2019-11-28 Thread Tim Johnson
On 11/27/19 6:53 PM, Leon Vaks wrote: Hello Tim, I was given the same advice to convert to PostgreSQL because PostgreSQL is Horizontally scalable. I did some research: Horizontal scaling means that you scale by adding more machines into your pool of resources whereas Vertical scaling means

Choosing MySQL or PostGres on Heroku

2019-11-27 Thread Tim Johnson
Using python 3.7.2, Django 2.1.5 on Linux development workstation with deployment to Heroku. I retired several ago, primarily coding in python and mostly working in legacy CGI systems with MySQL backends and still use mysql on my workstation. I am now essentially a hobbyist who wishes to

Re: Hosting

2019-05-25 Thread Tim Chase
On 2019-05-24 23:19, Prakash Borade wrote: > Friends tell me is hostgator.in server support django or not. Hostgator used to be a decent company until they were bought out by EIG, a parent company with a reputation of buying up good hosting companies and turning them into a bucket of suck. They

Fine-tuning rich text displays

2019-05-24 Thread Tim Johnson
almost anything on google _if_ you know the right keywords ... could use more of those. thanks -- Tim Johnson http://www.tj49.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 fro

Re: 1 project, X app = X subdomains (Django, Apache)

2019-05-23 Thread Tim Chase
On 2019-05-23 06:22, Jakub Jiřička wrote: > I want to ask you if someone has solved how to prove that is > possible the applications in one project run in different > subdomains? > > I have 1 project (projekt.cz) and provide of 3 applications (app1, > app2, app3) and I would like to get on my vps

Re: formfield_overrides doesn't work

2019-05-12 Thread Tim Johnson
* Jim Illback [190512 14:22]: > Tim, this won’t help you to use or solve the formfield_overrides issues, but > maybe it will be helpful. I’ve not tried this for a CharField, but it works > great on a TextField (which has no max_length, so model size isn’t impacted): > > 1.

Re: formfield_overrides doesn't work

2019-05-12 Thread Tim Johnson
* Joe Reitman [190512 13:34]: > Tim, > > I found this in the Django source code on Github searching for > 'formfield_overrides'. It is in a test module testing formfield_overrides > functionality. I'm assuming you imported TextInput from forms? This should > work to

Re: formfield_overrides doesn't work

2019-05-12 Thread Tim Johnson
* Joe Reitman [190512 10:31]: > Tim, > > Here is an example of a custom form field limiting the input to 100 > characters. The model is defined to accept 255 chars. BTW, the text widget > 'attrs' sets the HTML form element attributes. > > class SearchForm(forms.Fo

Re: formfield_overrides doesn't work

2019-05-11 Thread Tim Johnson
* Tim Johnson [190511 11:20]: > django 2.1.5 with python 3.7.2 > > I have a models.py class as follows: > class Article(models.Model): > title = models.CharField(max_length=255,) > > And I want to override the rendered default size attribute to 100 in > t

formfield_overrides doesn't work

2019-05-11 Thread Tim Johnson
, ArticleAdmin) Sadly it appears to have no effect. Viewing the rendered source, I do not see a size attribute. the field is rendered as: Have I ommited a step? thanks -- Tim Johnson http://www.tj49.com -- You received this message because you are subscribed to the Google Groups "Django users&q

Unit conversions between model field value and form field value

2019-05-07 Thread Tim Bell
a recommendation for how to do this either. What would you suggest? And is the recommended approach actually documented somewhere that I've missed? Thanks, Tim -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: WYSIWYG/Rich Text Editor recommendations

2019-05-06 Thread Tim Johnson
? thanks again -- Tim Johnson http://www.tj49.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 post

Re: Website slowed down drasticaly

2019-05-06 Thread Tim Chase
server hardware, etc), but there was an increase in traffic, then I imagine the issue stems from some unfortunate scaling issues. Often this is either related to poor choices for indexing in the database or some algorithm that used to work fine with smaller datasets but fails to scale to larger numbers of us

quill tries to import deprecated django.forms.util

2019-05-05 Thread Tim Johnson
utils not forms.util Before I set to hacking venv code and since I know there are quill users on this list, I should ask: Is there a later quill available for download with correct changes? thanks -- Tim Johnson http://www.tj49.com -- You received this message because you are subsc

Re: WYSIWYG/Rich Text Editor recommendations

2019-05-04 Thread Tim Johnson
* Tim Johnson [190430 16:27]: > Using python 3.7.2 and django 2.1.5 > > Production is in Ubuntu 16.04 and prospective deployment is likely > to be CentOS with same python/django. > > I'm a retired python developer. > > I'd welcome recommendations and/or caveats regar

Re: WYSIWYG/Rich Text Editor recommendations

2019-04-30 Thread Tim Johnson
* Joel Mathew [190430 17:29]: > Currently I'm using quill. It's easy to implement, and has all basic > features. Cool. Thanks for that Joel. > > I'd like to recreate the same functionality with django. I will need > > to be able to include embedded images. -- Tim Johnson h

WYSIWYG/Rich Text Editor recommendations

2019-04-30 Thread Tim Johnson
django. I will need to be able to include embedded images. TIA -- Tim http://www.tj49.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 d

Re: Upgrading Django from 1.11 to 2.2

2019-04-01 Thread Tim Graham
The advice is to go from one the major version to the next. Don't try to skip versions. -- 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

Re: Upgrading Django from 1.11 to 2.2

2019-03-30 Thread Tim Graham
Consider the "Upgrading Django to a newer version" guide. https://docs.djangoproject.com/en/stable/howto/upgrade-version/ On Friday, March 29, 2019 at 4:52:10 AM UTC-4, Uri Even-Chen wrote: > > Hi, > > I want to upgrade Django from 1.11 to 2.2. Do I have to upgrade first to > 2.0 and then to

Re: Django ForeignKey field name “check” raises SystemCheckError

2019-02-20 Thread Tim Graham
I believe the warning is incorrect. See https://code.djangoproject.com/ticket/23615 for the disucssion. On Wednesday, February 20, 2019 at 12:25:46 PM UTC-5, Eric Palmitesta wrote: > > The Django docs ( > https://docs.djangoproject.com/en/1.11/topics/db/models/#field-name-restrictions) > >

Re: Messages rejected?

2019-02-14 Thread Tim Graham
possible somehow, do you know? > > Thanks. > > On Thu, 14 Feb 2019 at 02:38, Tim Graham > > wrote: > >> Messages from first time posters go through a moderation queue. >> >> On Tuesday, February 12, 2019 at 9:56:26 PM UTC-5, Anton Melser wrote: >>>

Re: AuthenticationForm 'data' keyword argument?

2019-02-14 Thread Tim Graham
>From the docs for AuthenticationForm: "Takes request as its first positional argument, which is stored on the form instance for use by sub-classes." https://docs.djangoproject.com/en/dev/topics/auth/default/#django.contrib.auth.forms.AuthenticationForm On Thursday, February 14, 2019 at

Re: Messages rejected?

2019-02-13 Thread Tim Graham
Messages from first time posters go through a moderation queue. On Tuesday, February 12, 2019 at 9:56:26 PM UTC-5, Anton Melser wrote: > > Hi, > I asked a question last night with a Google for business account and had > the message bounce - is that normal? > > Google also hasn't kept the

Re: 2.2a1: django-admin migrate throws UnicodeEncodeError

2019-02-12 Thread Tim Graham
This was reported as crashing on Windows in https://code.djangoproject.com/ticket/30184 so we might revert the change. On Friday, February 1, 2019 at 3:45:39 PM UTC-5, Tim Graham wrote: > > I think your shell/terminal isn't configured for Unicode. Take a look here > for some ideas

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

Re: Model's verbose_name not getting used as field label when specifying a field type in ModelForm

2019-02-01 Thread Tim Graham
When you add a form field like that, it removes inheritance of field attributes like verbose_name from the model. Instead, you could override Form.__init__() and set the widget similar to what's described at https://docs.djangoproject.com/en/stable/ref/forms/widgets/ "Or if the field isn’t

Re: inspectdb traceback

2019-02-01 Thread Tim Graham
" delivered to me, it > was not indentionally installed. how to get a "new" version via pip? > > On Friday, February 1, 2019 at 3:45:15 PM UTC+1, Tim Graham wrote: >> >> You must use an older version of mysqlclient for such an old (and >> unsupported) vers

Re: 2.2a1: django-admin migrate throws UnicodeEncodeError

2019-02-01 Thread Tim Graham
I think your shell/terminal isn't configured for Unicode. Take a look here for some ideas about how to solve it: https://stackoverflow.com/questions/9942594/unicodeencodeerror-ascii-codec-cant-encode-character-u-xa0-in-position-20/39293287 On Friday, February 1, 2019 at 1:49:07 PM UTC-5,

Re: Migration question: why causes this change a non-empty migration?

2019-02-01 Thread Tim Graham
AutoField has AUTO_INCREMENT while IntegerField does not so if the migration is working correctly, I think its purpose is to drop the AUTO_INCREMENT. I'm reluctant to continue investigation as you're using an old version of Django and many bugs have been fixed since then. If you can reproduce

Re: inspectdb traceback

2019-02-01 Thread Tim Graham
You must use an older version of mysqlclient for such an old (and unsupported) version of Django. On Friday, February 1, 2019 at 7:50:11 AM UTC-5, christia...@itsv.at wrote: > > > while trying to build an app around an existing database, inspectdb bails > out on me. the server is running fine

Re: Projects for Beginners

2019-01-31 Thread Tim Vogt (Tim Vogt)
https://wsvincent.com <https://wsvincent.com/> tim t...@officerebels.nl <mailto:t...@officerebels.nl> > Op 31 jan. 2019, om 19:02 heeft Vikram Jadhav het > volgende geschreven: > > Hey there!! > Hope you are doing well in Django. > > I am a beginne

Re: beginner

2019-01-31 Thread Tim Vogt (Tim Vogt)
Wat do you want to accomplish? Tim t...@officerebels.nl > Op 31 jan. 2019, om 21:51 heeft Emmanuel klutse het > volgende geschreven: > > I'm Emmnuel klutse, and very new to programming. > CAN I GET SOMEONE TO MENTOR ME PLEASE. > i'm currently taking a python course on udemy

Re: help for django interview task

2019-01-31 Thread Tim Vogt (Tim Vogt)
are installed( django app settings etc write the functions in human language and/ or directly in the models forms etc. succes! Tim coderebels > Op 31 jan. 2019, om 07:44 heeft Navami K het > volgende geschreven: > > Can anyone help me with the project in the given image . thats

django wagtial docker production and staging database

2019-01-29 Thread Tim Vogt
postgres database? Do I set it up in my yml file? Or do I use a cli command? Tim -- 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: Questions about MySQL notes in Django docs

2019-01-23 Thread Tim Graham
Yes, Django supports MySQL 8. If you google "django mysql 8" the second result is https://code.djangoproject.com/ticket/29451. Based on the commits there, it looks like Django 2.0.7 and above received the fixes. On Wednesday, January 23, 2019 at 5:10:18 AM UTC-5, Carsten Fuchs wrote: > > Dear

Django security releases issued: 2.1.5, 2.0.10, and 1.11.18

2019-01-04 Thread Tim Graham
Today the Django team issued 2.1.5, 2.0.10, and 1.11.18 as part of our security process. These releases address a security issue, and we encourage all users to upgrade as soon as possible: https://www.djangoproject.com/weblog/2019/jan/04/security-releases/ The issue was publicly reported through

Re: Form no longer validates after upgrading django from 2.0.5 to 2.1. Should I report a bug?

2018-12-31 Thread Tim Graham
I think the behavior changed in https://github.com/django/django/commit/5fa4f40f45fcdbb7e48489ed3039a314b5c961d0. The old behavior looks like a bug to me (can you explain why it would be expected?) and we don't generally document bug fixes in the release notes. On Monday, December 31, 2018 at

Re: Update of issue (Trac) rejected (SPAM ...)

2018-11-28 Thread Tim Graham
I marked your comment as "ham" so maybe it'll pass the Bayes filter now. "Easy pickings" is subjective but I wouldn't consider that issue "easy" since there's not a clear consensus about how to proceed. On Wednesday, November 28, 2018 at 5:10:06 AM UTC-5, guettli wrote: > > I wanted to update

Re: Recommend Tutorials

2018-11-27 Thread Tim Johnson
; Regards > > Sent from my iPhone > > > On Nov 26, 2018, at 7:33 PM, Tim Johnson wrote: > > > > Using django 2.0 on ubuntu with python 3.5.2 > > > > Some tutorials that I have tried have deprecated code and I get > > errors. > > > > I wo

Recommend Tutorials

2018-11-26 Thread Tim Johnson
/ is about as current as they come :). It would be fun to experiment with others however. thanks -- Tim Johnson http://www.tj49.com -- 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: Looking for a Django Co-Founder.

2018-11-26 Thread Tim Vogt
Hi Zack just made an account to live plan. It seems you have removed me form the plan. Tim On Sunday, November 25, 2018 at 7:46:53 PM UTC+1, Tim Vogt wrote: > > Hi Zack do I need an account for liveplan? > > Tim > > Verstuurd vanaf mijn iPhone > > Op 18 nov. 2018 om 00:5

Re: Strange intermittent UUID bug

2018-11-26 Thread Tim Graham
See if https://groups.google.com/d/msg/django-users/ZGb8ofw1Ux8/TnMdqsj4AgAJ helps. On Friday, November 23, 2018 at 1:11:21 PM UTC-5, Zach wrote: > > You could try modifying to_python with something like this: > > import logging > > > def to_python(self, value): > if value is not

Re: Unapplied Migration - how to apply

2018-11-20 Thread Tim Johnson
* Joel Mathew [181120 11:18]: > Yes, for your special case where you seem to have a pre-existing migration, > you dont need makemigrations before migrate. I was just commenting that > this is not the usual case. Thank you. > On Wed, 21 Nov 2018 at 01:43, Tim Johnson wrote: &

Re: Unapplied Migration - how to apply

2018-11-20 Thread Tim Johnson
quence that was suggested by Shubham Rewale did fully apply the migration. Which is correct? -- Tim Johnson http://www.tj49.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 i

Re: Unapplied Migration - how to apply

2018-11-20 Thread Tim Johnson
Nov 2018, 10:10 p.m. Tim Johnson > > using django on ubuntu 16.04 > > python 3.5.2 > > django.VERSION = > > (2, 0, 0, 'final', 0) > > Working from the Django Core book by Nigel George. > > When launching <...> For more options, visit https://groups.goo

Unapplied Migration - how to apply

2018-11-20 Thread Tim Johnson
using django on ubuntu 16.04 python 3.5.2 django.VERSION = (2, 0, 0, 'final', 0) Working from the Django Core book by Nigel George. When launching (djenv) tim@linus:~/prj/cgi/djenv/djtest$ ./manage.py runserver Performing system checks... System check identified no issues (0 silenced

Re: makemigrations makes migration even if no changes in model

2018-11-10 Thread Tim Graham
I think you'll need to provide a sample project that reproduces the problem. I tried with the models you gave (and removed references to the models that you didn't provide) but can't reproduce. On Friday, November 9, 2018 at 6:51:49 AM UTC-5, Michał Redmerski wrote: > > Hello! > > All issues

Re: Prepopulate blog in b.entry_set.all()[i].blog ?

2018-10-31 Thread Tim Graham
It seems to be a bug as reported in https://code.djangoproject.com/ticket/29908. The ForeignKey must use to_field to reproduce the problem. On Saturday, October 20, 2018 at 4:38:51 AM UTC-4, Carsten Fuchs wrote: > > Can anyone help please? > > Am 2018-10-11 um 16:58 schrieb Carsten Fuchs: > >

Re: Can't Upload Image Field With Django 2.1

2018-10-31 Thread Tim Graham
You've misunderstood the purpose of height_field and width_field. Please read the documentation: https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ImageField.height_field You need to use a third-party app to do image resizing. Check out

Re: Can't Upload Image Field With Django 2.1

2018-10-31 Thread Tim Graham
height_field and width_field should be strings. What's the error and what does your model fields look like? On Wednesday, October 31, 2018 at 10:53:53 AM UTC-4, Pacôme Avahouin wrote: > > Tim you just saved me right now:) I have spent the all night trying to > figure it out. >

Re: Can't Upload Image Field With Django 2.1

2018-10-31 Thread Tim Graham
It looks like the width_field option on the model field isn't a string. On Wednesday, October 31, 2018 at 10:28:42 AM UTC-4, Pacôme Avahouin wrote: > > Hello Tim, > > Thanks for answering. > > Here is the complete traceback. > By the way when i commented out the 'upload_fil

Re: How to edit model.py and serializer so I can recieve contact":{"name":"asdf","email":"ma...@email.com","phone":"1111111111"}}

2018-10-31 Thread Tim Vogt
So Do you mean i change the angular? Of my models file? If the last apply how? Sincere, Tim On Wednesday, October 31, 2018 at 12:10:51 PM UTC+1, Krishnasagar Subhedarpage wrote: > > Hi Tim, > > IMHO, you can change angular's request body as per model defined in app so > that,

Re: Can't Upload Image Field With Django 2.1

2018-10-31 Thread Tim Graham
It would be helpful to see the complete traceback. What you provided doesn't show where the exception originates. On Tuesday, October 30, 2018 at 10:38:38 PM UTC-4, Pacôme Avahouin wrote: > > Hello guys, > > I'm trying to upload user avatar (ImageField type) with my own custom user > model

How to edit model.py and serializer so I can recieve contact":{"name":"asdf","email":"m...@email.com","phone":"1111111111"}}

2018-10-31 Thread Tim Vogt
nk=True) image = models.ImageField(upload_to='workplace_image', blank =True) location = models.CharField(max_length=250) name = models.CharField(max_length=150) email = models.EmailField(max_length=100, default='m...@example.com',blank= False) phone = models.CharField(max_length=14 ,default='11

test error

2018-10-20 Thread Tim Vogt (Tim Vogt)
I try to make a test with has an error any suggestions? tim expected_author = f'{post.author} ^ SyntaxError: EOL while scanning string literal -- Ran 1 test in 0.000s FAILED (errors=1

Re: GEOSContextHandle leak probably due to thread local storage destructing order

2018-10-19 Thread Tim Graham
Yes, if you can demonstrate that Django is at fault, you may create a ticket. If you're unsure, you might have better luck on the https://groups.google.com/forum/#!forum/geodjango mailing list. On Thursday, October 18, 2018 at 9:08:10 PM UTC-4, Yong Li wrote: > > I have seen consistent

/usr/share/nginx/html

2018-10-03 Thread Tim Vogt (Tim Vogt)
{ } error_page 500 502 503 504 /50x.html; location = /50x.html { } } I can not just my ngnix settings. But still what do I need to change? and how to get the proxy_pass http://unix:/var/www/myproject.sock; ? Do i need to make this? Tim -- You received

Re: how to create a form builder in django

2018-09-29 Thread Tim Vogt (Tim Vogt)
/getting_started/tutorial.html tim > Op 29 sep. 2018, om 08:26 heeft django_learner het > volgende geschreven: > > I am a newbie in Django. Can anyone help me how to create a form builder in > Django without using django-fobi or any other packages > > -- > You received

Re: Allow a limit_choices_to callable to accept the current model instances object

2018-09-25 Thread Tim Graham
There's a ticket with that feature request: https://code.djangoproject.com/ticket/25306 On Tuesday, September 25, 2018 at 6:25:38 PM UTC-4, Ochui Princewill wrote: > > Hello, > > Am current working on a project and i want to filter the content of a > ForeignkeyField base on the current model

rest api is installed but does not run

2018-09-25 Thread Tim Vogt (Tim Vogt)
Hoi we had a django project and we have pipenv and django installed and django rest when running python manage.py django keept telling the rest is not installed. any tips? we have django_rest in installed apps.. tim -- You received this message because you are subscribed

Release 1.11.16 on hold?

2018-09-21 Thread Tim Graham
We'll release it October 1. -- 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

  1   2   3   4   5   6   7   8   9   10   >