Re: UNICODE and newforms

2007-01-11 Thread Arthur
> +1 for unicode in django +1 Regards, Arthur. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com T

#1165: Wrong column name in ForeignKey constraints

2006-01-12 Thread Arthur
x27;) and 'IntegerField' or (f.get_internal_type() == 'PositiveSmallIntegerField') and 'SmallIntegerField' or f.get_internal_type() The downside is that this special cases PositiveIntegerFields and PositiveSmallIntegerField and isn't a general solution for all possible future fields which could use a constraint. Any thoughts? Arthur

Re: Status of magic-removal

2006-02-22 Thread Arthur
> I, for one, want to get m-r wrapped up and merged back to trunk as > soon as humanely possible. I feel like it's starting to be a drag on > new users trying to figure out why development on trunk seems to have > stopped, and I want to get us all back to one code

Re: templates and html escaping

2006-03-27 Thread Arthur
h behavior to the Django template processor would be great. > It's *much* easier to forget to escape something than to forget to > flag it as not-needing-escaping. Sorry for being late to the discussion. Just wanted to give a +1 on having the possibility to escape (or not escape) whole blo

Re: #1602: urlify.js blocks out non-English chars

2006-04-09 Thread Arthur
tandards in this area. If there are any proven ones, I'd vote to use them. Using Unicode in URLs would be fine with me, I don't know how well Browsers/Proxies/Servers/Search Engines handle them. Arthur --~--~-~--~~~---~--~~ You received this message because

Re: #1602: urlify.js blocks out non-English chars

2006-04-09 Thread Arthur
> @Arthur: You know what? Why don't we just do whatever feels more > natural to our language? Then again, I can sense some transliteration > collisions on the way. Absolutely, this should be language specific. If you look at the proposed list, you see that there are different t

[Feature Request] extra_context -> dataclass

2022-04-06 Thread Arthur
Hi all! Currently django views do not accept dataclasses as context. I stumbled about this because I wanted to do something like this: @cached_property def extra_context(self): data = MyDataClass(...) ... return data Unfortunately, this is unpacked by get_context_data and throws a

Re: Improving (and testing!) bash completion

2009-11-16 Thread Arthur Koziel
d tab e.g. "./manage.py dumpdata -". I think we should do the same to be consistent with other bash-completion scripts. [1]: http://git.debian.org/?p=bash-completion/bash-completion.git;a=tree;f=contrib;h=ae6cbcbb425cfc2cd1c3bb38b349512983187c0a;hb=HEAD Arthur On Nov 15, 2009, at 11:35 PM,

Re: Ticket #5025 - truncate filter, why hasn't it been accepted?

2009-12-30 Thread Arthur Furlan
n option. I think it's valid to take a look at the truncate[1] filter of the Smarty Template Engine because it solves some of the problems that have been discussed here. [1]. http://www.smarty.net/manual/en/language.modifier.truncate.php - -- Best regards, Arthur Furlan (afurlan) afu

Re: Porting _django_bash_completion to Windows Powershell

2010-03-17 Thread Arthur Koziel
COMP_CWORD=$COMP_CWORD \ 38DJANGO_AUTO_COMPLETE=1 $1 ) ) The Python function is executed in a Bash subshell (that's what the outer round braces are for). COMP_WORDS/COMP_CWORD and DJANGO_AUTO_COMPLETE are local variables and available only within this subshell. Arthur -- You received thi

GSoC: App Loading

2010-04-04 Thread Arthur Koziel
is step is optional. If Step 1 and 2 are finished and there is still some time left during the GSoC, I’m going to work on this. Arthur [0]: http://code.djangoproject.com/wiki/SummerOfCode2010#Apploading [1]: http://code.djangoproject.com/ticket/3591 [2]: http://code.djangoproject.com/wiki/

Re: GSoC: App Loading

2010-04-07 Thread Arthur Koziel
On Apr 7, 2010, at 1:40 PM, Russell Keith-Magee wrote: > On Mon, Apr 5, 2010 at 5:35 AM, Arthur Koziel wrote: >> Hi, >> I’m going to apply for GSoC with the goal of refactoring the app loading >> [0]. I’ve been looking at Django’s current app loading implementation >>

Re: GSoC: App Loading

2010-04-07 Thread Arthur Koziel
ication developer. For example, django-disqus currently expects the user to set the following variables in settings.py: DISQUS_SHORTNAME = 'foo' DISQUS_API_KEY = '123123' This could be done with: INSTALLED_APPS = InstalledApps( A

GSOC 2010: App Loading - Week 1

2010-05-28 Thread Arthur Koziel
Hey there, my name is Arthur Koziel and I'll be working on the app loading refactor for this year's gsoc program. I'm currently a business informatics student in dortmund, germany and working towards my bachelor's degree. I didn't get any coding done this week. I

[gsoc] app loading status + questions

2010-06-15 Thread Arthur Koziel
into similar problems or can reliably reproduce the error? (and is there any way to contact Malcolm?) 5. The app_errors attribute/the get_app_errors method doesn't seem to be used at all. Is there a reason why it's still there? Arthur [0]: http://code.djangoproject.com/browser/dja

[gsoc2010/app-loading] update

2010-07-27 Thread Arthur Koziel
ading core lives in django.db.loading. However, since the code will be refactored to also allow packages without models it won't make any sense to let it live in django.db.loading. * Task: Add Signals Add signals to the AppCache, so that developers can modify parts of the stages of the AppCach

[gsoc/app-loading] final status report

2010-08-22 Thread Arthur Koziel
the next 2 weeks filled up with exams but I'll be in Portland for DjangoCon in early September. I'm always open to feedback and planning on attending the sprints to do some further work. So until then... Regards, Arthur -- You received this message because you are subscribed to the

streaming patches reloaded

2006-05-12 Thread arthur debert
ing a ton of memory. >From tickets 1484/1569 they are set as fixed, but I cannot find them on django's source code. Are these patches active in trunk? If not, anyones knows if they're working after the merge? Anyone using them? Thanks a lot, arthur --~--~-~--~~---

Re: streaming patches reloaded

2006-05-17 Thread arthur debert
Hi Ivan. Just to make sure I understand: - after patching django I 've set: STORE_UPLOAD_ON_DISK = True I am trying to use this on the admin. Any more steps I must take? thanks a lot (for the patch and help) arthur --~--~-~--~~~---~--~~ You received

Re: ImageField and its use in templates

2006-05-17 Thread arthur debert
Hi Wegen. carimage = models.ImageField(upload_to = 'images/cars/%s.png' % carID, null = True, blank = True) this won't work. upload_to must be a string (it's not evaluated at the time the object is saved to the database). your best bet is to leave the path to the desired directory and name the

Re: Set a reasonable default for EMAIL_TIMEOUT

2022-11-17 Thread Arthur Pemberton
> (Why is "Just give it a value in your settings" not OK? 🤔) I'm guessing the issue here is that it's currently an unknown-unknown to most/all newbies. At the very least, it should probably be addressed in the documentation on deployment. Regards, Arthur Pemberton On Th

Re: Model icons

2023-02-18 Thread Arthur Pemberton
I too find the idea of hard coded HTML in a Python file to be inelegant, for what it's worth. Arthur Pemberton On Sat, 18 Feb 2023 at 08:12, 'Adam Johnson' via Django developers (Contributions to Django itself) wrote: > Putting HTML for the admin in model definitions is

Re: Add a minimal Gitignore

2023-03-09 Thread Arthur Pemberton
I like the idea as I've seen novices commit all their .pyc files, but maybe this should only triggered by a flag to startproject, --git perhaps. Arthur Pemberton On Thu, Mar 9, 2023, 14:13 Daniel Azubuine wrote: > Yeah > > What I meant is for the default ‘startproject’ templat

Re: Add a minimal Gitignore

2023-03-10 Thread Arthur Pemberton
What exactly would be considered the burden in maintaining a .gitignore? Arthur On Fri, Mar 10, 2023 at 11:37 AM Tega Ukavwe wrote: > I strongly agree with Adam and Tom, the extra and unnecessary burden of > maintaining the .gitignore file outweighs its advantages. > > Cheers, &g

Production Django use and "real ip"

2023-03-31 Thread Arthur Pemberton
should at least mention the need for the developer to handle this explicitly. Regards, Arthur P. [1] https://groups.google.com/g/django-developers/c/J5O28jB5D3Q/m/KLLgllFS7v0J [2] https://docs.djangoproject.com/en/4.1/howto/deployment/ -- You received this message because you are subscri

Re: Production Django use and "real ip"

2023-04-19 Thread Arthur Pemberton
At this point, I'm not even suggesting that Django handle this internally. I'm suggesting that the behaviour/expectation be documented, at least in the deployment guide. Are there any deployment scenarios where META.REMOTE_ADDR is ever even correct? Arthur Pemberton On Wed, Apr 19,

RE: Can we move the activity on this list to the Forum now?

2023-05-03 Thread Arthur Rio
Yes please! On May 3, 2023 at 11:19:12 PM, jure.erznoz...@gmail.com ( jure.erznoz...@gmail.com) wrote: +1 *From:* django-developers@googlegroups.com < django-developers@googlegroups.com> *On Behalf Of *natali...@gmail.com *Sent:* sreda, 03. maj 2023 20:10 *To:* Django developers (Contribution

Deploying Django under a sub-path

2023-06-16 Thread Arthur Pemberton
://ruddra.com/deploy-django-subpath-openshift/ to get things to work. Shouldn't this be a complete feature? I've re-checked https://docs.djangoproject.com/en/4.2/howto/deployment/ and there's no information on the topic (that I could find). Arthur Pemberton -- You received this mess

Re: Deploying Django under a sub-path

2023-06-16 Thread Arthur Pemberton
Even with `FORCE_SCRIPT_NAME` `MEDIA_URL` is being prefixed properly, but not `STATIC_URL` . Was `FORCE_SCRIPT_NAME` just not meant to be used with the `runserver` ? Arthur Pemberton On Fri, Jun 16, 2023 at 5:01 PM Arthur Pemberton wrote: > The docs reference `FORCE_SCRIPT_NAME` but say v

Re: Deploying Django under a sub-path

2023-06-16 Thread Arthur Pemberton
I found https://code.djangoproject.com/ticket/7930 seems like `FORCE_SCRIPT_NAME` just isn't meant to work. Maybe the docs should reflect that. Arthur Pemberton On Fri, Jun 16, 2023 at 5:18 PM Arthur Pemberton wrote: > Even with `FORCE_SCRIPT_NAME` `MEDIA_URL` is being prefixed prope

Re: Deploying Django under a sub-path

2023-06-23 Thread Arthur Pemberton
` itself is not documented anywhere; seems like it should at least be mentioned in the Deployment section. Arthur Pemberton On Fri, Jun 23, 2023 at 3:07 PM 'Adam Johnson' via Django developers (Contributions to Django itself) wrote: > Hi Arthur, > > You've found the wro

Use of TIME_INPUT_FORMATS in TimeField

2024-03-04 Thread Arthur Pemberton
ngs.TIME_INPUT_FORMATS seems to be ignored. How does one use settings.TIME_INPUT_FORMATS ? Arthur Pemberton -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails fr

Re: Use of TIME_INPUT_FORMATS in TimeField

2024-03-05 Thread Arthur Pemberton
per: > https://docs.djangoproject.com/en/5.0/topics/i18n/formatting/#creating-custom-format-files > > On Tue, 5 Mar 2024 at 18:43, Arthur Pemberton wrote: > >> The documentation ( >> https://docs.djangoproject.com/en/5.0/ref/forms/fields/#timefield) says >> that " the

Re: Use of TIME_INPUT_FORMATS in TimeField

2024-05-18 Thread Arthur Pemberton
urn here once I have some evidence either way, Arthur Pemberton On Tue, Mar 5, 2024 at 3:40 PM Adam Johnson wrote: > USE_I18N does not disable localization, but internationalization. USE_L10N > was the setting to enable/disable localization, but it was deprecated in > Django 4.0: > h

Re: Proposal to upgrade django.core.mail to Python's modern email API

2024-06-23 Thread Arthur Pemberton
Would this be designed to be compatible with "Proposal 14: Background Workers"? On Sun, Jun 23, 2024 at 10:46 PM Mike Edmunds wrote: > I want to propose updating django.core.mail to replace use of Python's > legacy email.message.Message (and other legacy email APIs) with > email.message.EmailM

Re: Proposal to upgrade django.core.mail to Python's modern email API

2024-06-25 Thread Arthur Pemberton
> The background workers proposal will implement a new background SMTP EmailBackend (in django.core.mail.backends). I had missed that fact. Thanks for the explanation. I for one think that this is a good proposal -- this would modern transactional email sending. - Arthur On Mon, Jun 24, 2

Formwizard and manytomany

2011-11-24 Thread Arthur Fortes
Hello, I'm new in Django and I got a problem with a formwizard. My manytomany dont works with formwizard. When I try appears this error : 'areaes' is an invalid keyword argument for this function. What I should do? So my formwizard is: class CadastroWizard(FormWizard): def get_template(self,

Re: Formwizard and manytomany

2011-11-25 Thread Arthur Fortes
models.py areaes = models.ManyToManyField(areavaga,verbose_name='Area da vaga*') pret_salario = models.CharField('Pretenção salarial*',max_length=2,choices=SALARIO_C) cargointeresse = models.CharField('Cargo de interesse*',max_length =20) tipoperfil = models.CharField('Tipo de perf

Re: [gsoc/app-loading] final status report

2010-08-23 Thread Arthur Koziel
Hey Yuri, I'm sorry but I don't understand your question. Could you please explain it a little more? Thanks, Arthur On Aug 23, 2010, at 5:47 AM, burc...@gmail.com wrote: > Hi Arthur, > > thanks for your work! > > Is any syntax of setting keywords for app instanc

Re: parameterized apps (was: Re: Eric Florenzano's presentation slides)

2010-09-09 Thread Arthur Koziel
e decided to leave INSTALLED_APPS as strings to maintain backwards compatibility. There are also some other resources which you can find on the wiki[1]. You can read through my final status report if you're interested in how the gsoc went[2]. I'm currently at DjangoCon and we're

Re: app loading

2011-01-05 Thread Arthur Koziel
paths to python modules Arthur [0]: http://groups.google.com/group/django-developers/browse_thread/thread/4cca2086dd485879/ [1]: http://groups.google.com/group/django-developers/msg/fd2e3bc0593f4158 On Sun, Jan 2, 2011 at 12:17 PM, Alex Kamedov wrote: > Hi all! Happy new year! > Sorry

Re: Status of InstalledAppsRevision, soc2010/app-loading branch?

2011-01-21 Thread Arthur Koziel
Hey there, I'm going to continue my work on the app loading branch when I finish my exams end of February. Oh, and the last discussion about this was 3 weeks ago: http://groups.google.com/group/django-developers/browse_thread/thread/c8921795bc7868af/ Arthur On Wed, Jan 19, 2011 at 8:

Re: Moving rest_framework.status into core?

2021-03-23 Thread Arthur Rio
https://github.com/encode/django-rest-framework/commits/master/rest_framework/status.py and in my opinion, it does make the developer experience nicer. Best, Arthur On March 23, 2021 at 9:24:32 AM, 'Adam Johnson' via Django developers (Contributions to Django itself) (django-developers@g

Re: Content types shouldn't be created on post_migrate signal

2021-04-13 Thread Arthur Rio
k you for your input, stay safe Arthur & Taylor On Saturday, October 13, 2018 at 12:56:25 PM UTC-6 petter.s...@gmail.com wrote: > I encountered a similar issue recently, but with auth permissions. > > It is described here: https://code.djangoproject.com/ticket/29843 > > On Wednesd

Case Sensitive Usernames

2021-12-12 Thread Arthur Pemberton
come across [1]. Ideally, it would be great to have a setting (or model field) that would allow easy switching to case insensitive usernames. Arthur Pemberton [1] https://code.djangoproject.com/ticket/2273 -- You received this message because you are subscribed to the Google Groups &qu

Re: Case Sensitive Usernames

2021-12-12 Thread Arthur Pemberton
, I've taken to overriding UserManager.get_by_natural_key to allow for case-insensitive logins. Though really, I probably should add a signal handler to force username to lowercase. Arthur On Sunday, December 12, 2021 at 11:21:32 AM UTC-5 Uri wrote: > Hi Arthur, > > I would rec

Re: Case Sensitive Usernames

2021-12-12 Thread Arthur Pemberton
Purely anecdotal, but I've never had a user intentionally signup for an account with a case-sensitive email address. I'm not such which users expect their username or email addresses to be case-sensitive. Arthur On Sunday, December 12, 2021 at 10:40:30 PM UTC-5 m...@kye.id.au wrote:

Re: Case Sensitive Usernames

2021-12-12 Thread Arthur Pemberton
. Arthur On Sun, 12 Dec 2021 at 23:01, Benny wrote: > IMO this treads dangerously close to what I call a “Django Gotcha” - There > exist some implementations, where if you’re not paying attention, it’ll > come back to bite you in the keister. One example would be the test runner > co

Re: Improvements to the startproject template

2022-04-20 Thread Arthur Pemberton
For what it's worth, this is the (general) layout I've used for the past 8+ years of my professional Django development. Arthur On Wed, 20 Apr 2022 at 15:22, Olivier Dalang wrote: > +1 for Adam's suggestion, I use it as well and like it very much. > > > ro

Re: Content types shouldn't be created on post_migrate signal

2018-10-04 Thread Arthur Rio
should add very first migration, which will add entry to the content types How would you handle creating a model later on? Or if `django.contrib.contenttypes` is only added later on to `INSTALLED_APPS`? Regards, — Arthur On October 4, 2018 at 1:36:39 PM, Marcin Nowak (marcin.j.no

Re: Content types shouldn't be created on post_migrate signal

2018-10-05 Thread Arthur Rio
Django should remove all CT data . It’s a good idea but I don’t know offhand how we can keep migrations and content type decoupled to do that (especially the removal). Finally, I also think the concept could be extended to the permission model which faces similar issues. Regards -- Arthur On

Re: Content types shouldn't be created on post_migrate signal

2018-10-05 Thread Arthur Rio
which faces similar issues. Regards -- Arthur On October 5, 2018 at 9:30:58 AM, Arthur Rio (arthur.ri...@gmail.com) wrote: Hey Marcin, The problem is that data migration based on app layer (python objects, ie. Models and Managers here) will cause troubles after some time (when app is cha

Re: Content types shouldn't be created on post_migrate signal

2018-10-07 Thread Arthur Rio
right. Right now the auto-detector is a black box that deals with dependencies and model state deltas resolution." If now is the time to take a stab at it, I'd be happy to help as much as I can. Regards -- Arthur On Friday, October 5, 2018 at 10:28:06 AM UTC-7, Arthur Rio wrote: >

Migration strategy for proxy model permissions to use their own content type

2018-11-26 Thread Arthur Rio
main reviewer, suggested to contact the mailing list for further review in order to catch any red flag and make sure we have general consensus on the chosen approach. Regards. Arthur -- You received this message because you are subscribed to the Google Groups "Django developers (Contri

Re: IRC Channel

2018-12-13 Thread Arthur Rio
Hi Avi, There are #django (for usage) and #django-dev (for contributing), both on irc.freenode.net, as mentioned here: https://docs.djangoproject.com/en/dev/internals/contributing/ Regards — Arthur On December 13, 2018 at 11:03:51 PM, Avi Garg (avi.grg4...@gmail.com) wrote: Does Django have

Re: Migration strategy for proxy model permissions to use their own content type

2019-01-07 Thread Arthur Rio
Thank you for your feedback Aymeric, I have added the backward migration method + tests per your suggestion: https://github.com/django/django/pull/10381/commits/d5c4a4b08ccee9239e5117df4c788a5a7a2f60a9 Regards — Arthur On January 6, 2019 at 10:04:18 PM, Aymeric Augustin ( aymeric.augus

Re: Support for unittest -k option

2019-03-11 Thread Arthur Rio
I’m +1 on no short-hand. Also “kdb” is a little to close to “pdb” and doesn’t really make sense to me. — Arthur On March 11, 2019 at 3:33:50 PM, Dan Davis (dansm...@gmail.com) wrote: I personally don't think a short-hand is needed. On Mon, Mar 11, 2019 at 10:41 AM Tim Graham wrote: &

Re: Progress, status, and opinions of #2070

2007-06-03 Thread arthur debert
something like FILE_UPLOAD_TEMP_DIR will give more the idea of what this is really about. Just wanted to drop in and give the perspective of someone just using the patch. All in all, thanks for the patch, it's a lifesaver. cheers Arthur --~--~-~--~~~---~--~~ You r

Re: {GSoC 2008}Django-Newcomments : A preview

2008-05-22 Thread arthur debert
plication can define somewhere (maybe a settings) which function to process the comment (markdown, textile, some home made tag removing routine), and have that run and then persisting both at the database. Thanks Arthur --~--~-~--~~~---~--~~ You received this message becaus

Re: Use of TIME_INPUT_FORMATS in TimeField

2024-12-08 Thread Arthur Pemberton
To simplify things further, within a view: TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M', '%I:%M %p'] and forms.TimeField.input_formats = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] On Sun, Dec 8, 2024 at 9:55 AM Arthur

How to run the CustomTimeInputFormatsTests unit test?

2024-12-09 Thread Arthur Pemberton
Even using `./runtests.py forms_tests.tests.test_input_formats.CustomTimeInputFormatsTests.test_timeField` results in an error: TypeError: CustomTimeInputFormatsTests.test_timeField() missing 1 required positional argument: 'self' Arthur Pemberton -- You received this message because you a

Re: How to run the CustomTimeInputFormatsTests unit test?

2024-12-09 Thread Arthur Pemberton
I've submitted https://code.djangoproject.com/ticket/35986 If I'm missing something, please let me know. Arthur Pemberton On Monday, December 9, 2024 at 5:12:57 AM UTC-5 Bendegúz Csirmaz wrote: > Yes you're right, it's not executed for me either. > > On Monday, 9

Re: Use of TIME_INPUT_FORMATS in TimeField

2024-12-09 Thread Arthur Pemberton
test failing. Arthur Pemberton On Sunday, December 8, 2024 at 8:03:22 PM UTC-5 Arthur Pemberton wrote: To simplify things further, within a view: TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M', '%I:%M %p'] and forms.TimeField.input_formats =

Re: Use of TIME_INPUT_FORMATS in TimeField

2024-12-09 Thread Arthur Pemberton
Adam, Up until now, I've only been reading the test. Now that I actually tried running the test, it does not get discovered by the testing system (without modifications to test_input_formats.py) and when I do get the test to run, it fails. I used tag "5.1.4" to get the unit tes

Re: Use of TIME_INPUT_FORMATS in TimeField

2024-12-08 Thread Arthur Pemberton
w the unittest is written that allows it to pass, and not expose this. Regards, Arthur On Tue, Mar 5, 2024 at 3:40 PM Adam Johnson wrote: > USE_I18N does not disable localization, but internationalization. USE_L10N > was the setting to enable/disable localization, but it was deprecated in &