Re: Project together

2023-11-23 Thread Jacob Greene
🤣 On Thu, Nov 23, 2023, 5:05 PM Joshua Olatunji wrote: > https://chat.whatsapp.com/IgJcwnZR9sr1Jatc5jnSx9 > > On Thu, Nov 23, 2023, 9:34 PM Dawda Borje Kujabi > wrote: > >> Your link is not working for me >> >> >> Original message >> From: Joshua Olatunji >> Date: Thu, 23 Nov

Re: How to fight Russia in America

2023-03-12 Thread Jacob Greene
Get bent my guy. On Sun, Mar 12, 2023, 11:59 PM Jacob Greene wrote: > Lmao wtf is this troll > > On Sun, Mar 12, 2023, 5:51 PM Michael Starr wrote: > >> I'll roll over and die then. Thank you for contributing to the Russian >> cause. My parents would be proud. &g

Re: How to fight Russia in America

2023-03-12 Thread Jacob Greene
Lmao wtf is this troll On Sun, Mar 12, 2023, 5:51 PM Michael Starr wrote: > I'll roll over and die then. Thank you for contributing to the Russian > cause. My parents would be proud. > > On Sunday, March 12, 2023 at 3:37:58 PM UTC-7 Sebastian Jung wrote: > >> Please stop this propaganda... This

Re: List validator

2023-02-28 Thread Geo Jacob
Larry, It seems like request data field name don't have underscore. It should be case_status instead of casestatus Regards, Geo On Tue, Feb 28, 2023 at 2:12 AM Larry Martell wrote: > I have this defined in my serializer: > > case_status = serializers.ListField( > child=serializers

Set value automatically to input field

2022-03-28 Thread KOUASSI JACOB KRA
Hello all, I begin with django and i'm trying set calculate value to a field in django admin. I have 3 fields : quantity, price and total_httc. what I want is that after entering the values ​​of quantity and price the total_httc is filled in automatically. total_httc = quantity * price. -- Y

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-25 Thread Jacob Greene
s? I have been playing with > alternatives for a week and I’m starting to lose it…lol > > > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows > > > > *From: *Jacob Greene > *Sent: *Friday, February 25, 2022 5:58 PM > *T

Re: Slow page load performance with a large number of formsets (over 25)

2022-02-25 Thread Jacob Greene
If you're using model choice fields, it's very likely you are making an SQL query for each form set. It should be pretty obvious in the log with debug turned on. On Fri, Feb 25, 2022, 4:31 PM Ryan Nowakowski wrote: > Steven, are you using ModelFormSet? If so, Is it the initial query > that's sl

Re: Django Exception "Detected path traversal attempt in" for save a model with filefield

2022-02-04 Thread Jacob Greene
Hmm that can't be right. Can you set a breakpoint on the line where the exception is raised: SuspiciousFileOperation("Detected. When you set a breakpoint there, inspect the value of dir_name. The ".parts" method breaks the file path up into a tuple, there shouldn't be a ".." in the tuple. O

Re: Django Exception "Detected path traversal attempt in" for save a model with filefield

2022-02-03 Thread Jacob Greene
This is obviously some type of security feature to prevent someone from climbing up a directory. You have ".." in your string for the file path somewhere. What is the value of "dir_name" when the exception is raised? It should be in the traceback somewhere. Should help narrow down where it's comin

Re: TypeError: 'str' object is not callable

2021-08-30 Thread Jacob Greene
You need to pass the request object as the first argument. https://docs.djangoproject.com/en/3.2/ref/contrib/messages/ On Mon, Aug 30, 2021, 11:01 PM Thomas Lockhart wrote: > Just guessing that you need to write > > messages.success = “Your ad is successfully posted” > > But without more inform

dumpdata - output file not compressed

2021-08-14 Thread Dan Jacob
The dumpdata command does not appear to be doing any compression. This is using Django 3.2.6 running in a Docker container with the python:3.9.6-buster image. Given the command > ./manage.py dumpdata myapp.MyModel -o myfixture.json.gz --traceback I would expect the file myfixture.json.gz t

Re: ProgrammingError - relationship does not exist

2021-07-07 Thread Jacob Greene
Oh actually, it looks like the table doesn't exist. I misread the SQL. Something is wrong with your migrations. Are you sure you ran "makemigrations" after creating the shop model? On Wed, Jul 7, 2021, 11:03 AM Jacob Greene wrote: > Do you have any other attributes set

Re: ProgrammingError - relationship does not exist

2021-07-07 Thread Jacob Greene
Do you have any other attributes set in the modeladmin? Something is telling the ORM to do a query on the "shop" field, and that field doesn't exist in the DB and it's not defined in the model. Possibly a filter field in the ModelAdmin class? A full back trace might help illuminate where you have t

Re: ProgrammingError - relationship does not exist

2021-07-06 Thread Jacob Greene
The issue is with the model not the admin page. I suspect you haven't ran migrations for the "Shop" model. You defined a "shop" field in the model, but the database doesn't know anything about it. On Tue, Jul 6, 2021, 7:16 PM Stathis Angelou wrote: > Good evening all, i have created a new app

Re: PLS HELP!! - SCRAPE YOUTUBE CHANNEL EMAIL

2021-06-20 Thread Jacob Greene
Might be easier and more reliable to use the API. https://developers.google.com/youtube/v3 On Sun, Jun 20, 2021, 7:21 AM Priyesh Ranjan wrote: > yes i can do that for you > > On Sun, Jun 20, 2021 at 6:29 AM Vrushang Desai > wrote: > >> Hi Guys , >> Anyone knows how to scrape Youtube Channels E

Re: Desperately need help.

2021-06-14 Thread Jacob Greene
Lol what do you expect anyone to do? You just post some random HTML, zero code, no backtrace, nothing to even indicate there is an issue that someone could solve even IF they were willing... This has nothing to do with Django. I don't understand what you thought was going to happen. This is possibl

Re: Module "django.core.cache.backends.memcached" does not define a "PyMemcacheCache" attribute/class

2021-06-11 Thread Jacob Greene
Looks like only django 3.2 uses PyMemcacheCache. Try: "django.core.cache.backends.memcached.MemcachedCache" Also, make sure you are using the docs for the correct version of django: For example: https://docs.djangoproject.com/en/3.0/topics/cache/ instead of: https://docs.djangoproject.com/en/3.2

Re: IndexError at /

2021-06-11 Thread Jacob Greene
The backtrace is pretty clear.. Here's the import part: File "C:\Users\GEMINI INNOVATIONS\Documents\WEB DEV TUTOR FULL STACK\django_project_boilerplate-master\ECOMMERCE\core\templatetags\cart_template_tags.py", line 13, in cart_item_count return qs[0].items.count() "qs" is probably an empty list

Re: Rendering python file.

2021-05-06 Thread sanosh jacob
If u want to disay something without reloading the page u can use ajax. By this u can display the data without reloading the page. And also u can call certain url On Fri 7 May, 2021, 11:59 AM GEETHANJALI S P, wrote: > Hi All, > > How do I run python file on clicking an Html Button? I really want

Re: Authentication using Email or Password

2021-05-05 Thread sanosh jacob
U can use ur user model on django to authenticate user. It have a function to authenticate the user. Or u can create ur own database and validate the input with that data. Sent from my Huawei Mobile Original Message Subject: Authentication using Email or PasswordFrom: 'Muhammad Asim

Re: Urgent help

2021-02-25 Thread Jacob Greene
I would also like some urgent free work done for me. Please anyone. Drop what you are doing and help me now. On Thu, Feb 25, 2021, 9:26 PM neha bhurke wrote: > Thank u so much for your help 😊 > *Regard,* > *Neha Bhurke* > > > > > On Thu, Feb 25, 2021 at 3:09 PM Kasper Laudrup > wrote: > >> On 2

New Django Contract/Job Board

2020-12-29 Thread Jacob Hyde
Hi everyone. I recently created a Django contract / job board (https://djangocontracts.com). It works very similar to larajobs, but is for Django. You can create a FREE post to the board using the coupon DCFREE12 right now, or if you feel like helping maintain the site you can get 50% off usin

Re: Ransomeware

2020-09-05 Thread Jacob Greene
I'd also be will willing to provide you with Bofa On Sat, Sep 5, 2020, 7:44 PM Jacob Greene wrote: > No paypal, but I could do Ligma as well. > > On Sat, Sep 5, 2020, 7:42 PM Mustafa Mahmoud > wrote: > >> No do you have a PayPal >> >> >> On Sun,

Re: Ransomeware

2020-09-05 Thread Jacob Greene
No paypal, but I could do Ligma as well. On Sat, Sep 5, 2020, 7:42 PM Mustafa Mahmoud wrote: > No do you have a PayPal > > > On Sun, Sep 6, 2020, 2:09 AM Jacob Greene > wrote: > >> Would you accept payment via deez? >> >> On Sat, Sep 5, 2020, 6:32 PM Must

Re: Ransomeware

2020-09-05 Thread Jacob Greene
Would you accept payment via deez? On Sat, Sep 5, 2020, 6:32 PM Mustafa Mahmoud wrote: > Do you wanna buy it > > On Sun, Sep 6, 2020, 1:14 AM Raphael Polanco > wrote: > >> Hey, Musatafa. >> >> Can you give more details on this project of yours? >> >> R.. Polanco >> >> On Sat, Sep 5, 2020 at 2:0

Re: Who can help me?

2020-08-22 Thread Kovy Jacob
whats the prob On Fri, Aug 21, 2020 at 9:30 AM Hella thor wrote: > Hey guys: > > My python version is 3.7.1 > Django version is 3.1 > > When I started the project > > [image: 9.png] > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To un

Re: ERROR

2020-08-08 Thread Kovy Jacob
Are you switching into your projects directory and then using 'python manage.py runserver' from command prompt/terminal to run your website? On Sat, Aug 8, 2020 at 4:25 PM Agoua David wrote: > Can you send a screenshot of the view file > > Le sam. 8 août 2020 à 20:21, traore arouna a écrit : >

Re: Python-django project

2020-08-06 Thread Kovy Jacob
i mean project. Do you have a specific project in mind? On Thu, Aug 6, 2020 at 12:26 PM Kovy Jacob wrote: > do you have a specific question in mind? > > On Thu, Aug 6, 2020 at 9:36 AM Lahu Chavan wrote: > >> i am also interested to join ur project. my whatsapp number &

Re: Python-django project

2020-08-06 Thread Kovy Jacob
do you have a specific question in mind? On Thu, Aug 6, 2020 at 9:36 AM Lahu Chavan wrote: > i am also interested to join ur project. my whatsapp number > is +917875279602 > > On Thu, Aug 6, 2020 at 6:56 PM gregory adomako > wrote: > >> Interested >> >> On Tuesday, July 21, 2020 at 4:09:08 AM U

Re: django beginner

2020-08-05 Thread Kovy Jacob
If you want to learn, just try building a site, any site. Pick a hobby that you have, and make a site about you and your hobby. There is a concept in programming called MVP - minimum viable product. This means the minimum you can do to have a working site. I recommend that you figure out exactly ho

Re: Has anyone created eCommerce website with Django?

2020-08-05 Thread Kovy Jacob
I would recommend using shopify over wix, as it is meant for e-commerce, but django will give you many advantages. - Highly customizable, you can add on anything you want, easily - WAY cheaper, you can host a django site for a few dollars a month - It gives you unlimited expansion, a day will hopef

Re: field for html

2020-08-05 Thread Kovy Jacob
e" allowfullscreen>* > > On Mon, Aug 3, 2020 at 11:16 PM neeraj garg wrote: > >> Try to use django *safe *filter to render this as html. >> >> On Mon, Aug 3, 2020 at 8:35 PM Kovy Jacob wrote: >> >>> Hi, is there a type of field for django

ChoiceField in from module not working

2020-08-05 Thread Kovy Jacob
I am trying to have a ChoiceField in a form, but it gives me this error: from TachlisGeredt.register_form import register File "/Users/kovyjacob/TachlisGeredt/TachlisGeredt/register_form.py", line 10, in class RegisterForm (forms.Form): File "/Users/kovyjacob/TachlisGeredt/TachlisG

field for html

2020-08-03 Thread Kovy Jacob
Hi, is there a type of field for django data models that's for html? I want to have youtube embed links, which is a bunch of html fo putting a youtube video on your site. Itlooks like this: "https://www.youtube.com/embed/Rj_vssRaZlQ"; frameborder="0" allow="accelerometer; autoplay; encrypted-media;

Re: Django key/value JSON widget

2020-07-30 Thread Kovy Jacob
Are you not able to use the regular python module for interacting with json files? > On Jul 22, 2020, at 2:34 PM, Federico Capoano > wrote: > > https://django-hstore.readthedocs.io/en/latest/#django-admin-widget > -- You

Re: Site not Secure only on Google Chrome

2020-07-26 Thread Kovy Jacob
I don’t know how to fix that, but I checked out the site on safari - it looks REALLY cool! Its really cool you made that with Django! > On Jul 26, 2020, at 11:07 AM, Anirudh choudhary > wrote: > > Hello everyone > > I hosted my app on Heroku. when is try to access www.apnaganna.herokuapp.com

Re: Import csv file on django view

2020-07-22 Thread Kovy Jacob
nce or raw data and then detect the encoding > format. With its prediction, if you want to open that puece of data in text > mode, you can use the .decode() method of bytes object to > get a python string. > > On Wed, 22 Jul 2020 at 11:04 PM, Kovy Jacob <mailto:kovy.ja...@gma

Re: Import csv file on django view

2020-07-22 Thread Kovy Jacob
akes a sequence or raw data and then detect the encoding > format. With its prediction, if you want to open that puece of data in text > mode, you can use the .decode() method of bytes object to > get a python string. > > On Wed, 22 Jul 2020 at 11:04 PM, Kovy Jacob <ma

Re: Import csv file on django view

2020-07-22 Thread Kovy Jacob
mand that I > am using, it is the logic that I want to incorporate in a view > > El mié., 22 jul. 2020 a las 10:43, Kovy Jacob ( <mailto:kovy.ja...@gmail.com>>) escribió: > Ah, so is the problem that you don’t always know what the delimiter is when > you read it? If yes, wha

Re: Import csv file on django view

2020-07-22 Thread Kovy Jacob
I'm using csv module, but I need to handle the delimiters of the > files, sometimes you come separated by "," others by ";" and rarely by "|" > > El mié., 22 jul. 2020 a las 10:28, Kovy Jacob ( <mailto:kovy.ja...@gmail.com>>) escribió: > C

Re: Import csv file on django view

2020-07-22 Thread Kovy Jacob
; Hi Kovy, I'm using csv module, but I need to handle the delimiters of the > files, sometimes you come separated by "," others by ";" and rarely by "|" > > El mié., 22 jul. 2020 a las 10:28, Kovy Jacob ( <mailto:kovy.ja...@gmail.com>>) escribió:

Error in manage.py when I do python manage.py runserver

2020-07-22 Thread Kovy Jacob
It gives me a syntax error Jacob-Mac-mini:TachlisGeredt kovyjacob$ python manage.py runserver 0.0.0.0:8000 File "manage.py", line 16 ) from exc: ^ SyntaxError: invalid syntax I didn’t edit manage.py yet, I literally just started the project. I was thinking maybe its a) a version erro

Re: Import csv file on django view

2020-07-22 Thread Kovy Jacob
Could you just use the standard python csv module? > On Jul 22, 2020, at 10:25 AM, Ronaldo Mata wrote: > > Hi Liu thank for your answer. > > This has been a headache, I am trying to read the file using csv.DictReader > initially i had an error trying to get the dict keys when iterating by rows

manage.py is giving me an error

2020-07-21 Thread Kovy Jacob
Jacob-Mac-mini:TachlisGeredt kovyjacob$ python manage.py runserver 0.0.0.0:8000 File "manage.py", line 16 ) from exc ^ SyntaxError: invalid syntax why am I getting an error, I never edited manage.py -- You received this message because you are subscribed to

Re: ModelForm "error_css_class" not getting applied to ValidationErrors raised in model.clean()

2019-07-16 Thread Jacob Greene
Thank you for the reply! And good catch haha, I'm not actually. I editing these by hand so I wasn't posting some confusing telephony terminology. I'm displaying errors in my templates by marking them with that "form_error" css class. They are just red and bold, most errors are shown with the cor

ModelForm "error_css_class" not getting applied to ValidationErrors raised in model.clean()

2019-07-15 Thread Jacob Greene
Hello! Has anyone dealt with this before? It seems that my forms don't add the CSS class to errors raised in model.clean() or model.clean_fields() methods. I have a form that looks something like this: class HttpsFaxBoxForm(forms.ModelForm): error_css_class = 'form_error' class Meta:

Re: Django 2.2.0 StatReloader not responding to filechanges

2019-04-21 Thread jacob
I submitted a bug report and am working on a patch: https://code.djangoproject.com/ticket/30361 Also, it appears that some fixes to the StatReloader may be coming in 2.2.1 (or 2.3?) which could also help On Thursday, April 11, 2019 at 3:34:27 PM UTC-7, ja...@workflowy.com wrote: > > After more

Re: Django 2.2.0 StatReloader not responding to filechanges

2019-04-11 Thread jacob
After more research, I noticed that Django is using the default timeout of 1sec for the pywatchman client. When I try running the watch with a higher timeout, I am able to start it successfully. I would suggest that Django makes the timeout configurable, or chooses a higher default value. On W

Re: Django 2.2.0 StatReloader not responding to filechanges

2019-04-11 Thread jacob
We have noticed the same thing. StatReloader is very unreliable (over docker) and Watchman timed out. I'm gonna try tweaking the Watchman config settings but it was the first time I have upgraded Django and had anything less than a perfectly smooth experience On Wednesday, April 10, 2019 at 5:0

Re: Query Regarding Django Signals

2018-05-04 Thread jacob duyon
You can also just write a Celery task to do your async stuff and trigger it from signals.py On Fri, May 4, 2018 at 4:13 PM, Jani Tiainen wrote: > Hi, > > Signals are also good for decoupling things. > > For example you want to do some post save action for third party models. > > 4.5.2018 19.10 "

Re: Need Help With integrating Python Scripts with Django Frame Work

2018-04-16 Thread jacob duyon
I'm not sure how many users you have for this, but it's best practice to use an asynchronous task queue (like Celery) to run the actual powerpoint creation code. If you simply run the script inside the view it will block the response from happening. You create a celery task (which in your case woul

Re: What were your best resources in learning programming, python, ultimately django?

2018-04-09 Thread jacob duyon
Do the class completely. Don't skip anything, especially things that are hard. Always try to figure something out on your own, and take breaks when you are completely stuck. If you are ever stuck, ask yourself why you are stuck, and usually its because you don't understand some dependency. Google e

can somebody help me understand django framework please

2017-06-23 Thread Daniel Jacob
I am new to django and i want some form of tutorial -- 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 gr

Re: Different models in child and Parent Templates

2017-05-02 Thread jithu s jacob
e way template_name='blog/contact.html' model=Blog On Monday, May 1, 2017 at 4:50:37 PM UTC+5:30, jithu s jacob wrote: > > I am using parent template as base which has a side nav bar. the child > template keeps changing with clicking of buttons. > > My child templat

Different models in child and Parent Templates

2017-05-01 Thread jithu s jacob
I am using parent template as base which has a side nav bar. the child template keeps changing with clicking of buttons. My child template changes correctly with call to different views through the URLs. Now I want to add some data from model i the parent template irrespective of the view/mod

[Announce] Django security releases issued

2014-05-14 Thread Jacob Kaplan-Moss
urity-releases-issued/ Thanks! Jacob -- 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

[ANNOUNCE] Django 1.6.2 and Django 1.7a2

2014-02-06 Thread Jacob Kaplan-Moss
jango-17a2-released/ And you can snag the releases from https://www.djangoproject.com/download/and from PyPI. Enjoy! Jacob -- 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

[ANNOUNCE] Django 1.6.1 released

2013-12-12 Thread Jacob Kaplan-Moss
.1/ Enjoy! Jacob -- 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 e

Security Advisory: ImageField abuse

2013-12-02 Thread Jacob Kaplan-Moss
t We recommend that if you allow image uploads that you check your server's configuration against the above guide. Jacob -- 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

[Announce] Expected djangoproject.com downtime tomorrow, Oct 18, starting 20:00 UTC

2013-10-17 Thread Jacob Kaplan-Moss
d the Docs: http://django.readthedocs.org/en/latest/. Thanks! Jacob -- 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...@googlegr

Re: Does Model.save() write back all the field values?

2013-08-14 Thread Jacob Kaplan-Moss
It's not a bug; that is by design. However, it's not perfect, so in 1.5 we added update_fields: https://docs.djangoproject.com/en/1.5/ref/models/instances/#specifying-which-fields-to-save Jacob On Wed, Aug 14, 2013 at 7:01 AM, Dong Wang wrote: > Hi all, > > I'm using

[ANNOUNCE] Security releases issued (1.4.6, 1.5.2, 1.6b2)

2013-08-13 Thread Jacob Kaplan-Moss
nformation. Jacob -- 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-us

Security Advisory: BREACH and Django

2013-08-06 Thread Jacob Kaplan-Moss
We plan to take steps to address BREACH in Django itself, but in the meantime we recommend that all users of Django understand this vulnerability and take action if appropriate. Jacob -- You received this message because you are subscribed to the Google Groups "Django users" group. To un

Re: cannot import name current_datetime

2013-07-25 Thread jacob poke
hi - I am having the same problem to this and wondering if anyone found a solution? I dont really want to move on until i solve this. I have tried to change the text in the "Hello world" section but the browser continues to show "hello world". I also tried to develop a url similar to "Hello" u

ANNOUNCE: Django 1.6 beta 1 released

2013-06-28 Thread Jacob Kaplan-Moss
d/ And in the release notes: https://docs.djangoproject.com/en/dev/releases/1.6/ Thanks! Jacob -- 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: Django ModelForm is_valid & form_valid

2013-06-20 Thread Jacob Valenta
Thank you good sir! You have put an end to my week long head ache! On Thursday, June 20, 2013 12:27:36 PM UTC-4, Jason Arnst-Goodrich wrote: > > This is a common problem to run into. > > def form_valid(self, form): > > customer = form.save(commit=False) > > customer.store = self.request.user.acti

Django ModelForm is_valid & form_valid

2013-06-20 Thread Jacob Valenta
Basically, I have a model, a ModelForm, and an UpdateView. I go to the UpdateView (viewing a current customer) and just hit the submit button (changing no data). What results is an error from the model: *Cannot assign None: "Customer.store" does not allow null values.* (*I do not have a field o

ANNOUNCE: Django 1.6 alpha 1 released

2013-05-26 Thread Jacob Kaplan-Moss
And in the release notes: https://docs.djangoproject.com/en/dev/releases/1.6/ Thanks! Jacob -- 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: djangoproject.com is down

2013-05-14 Thread Jacob Kaplan-Moss
silient against any future outages like this. Thanks for your patience! Jacob On Tue, May 14, 2013 at 5:53 PM, Jacob Kaplan-Moss wrote: > FYI - djangoproject.com is currently down, I'm investigating and I'll > try to have it back up ASAP. > > In the meantime, if you need t

djangoproject.com is down

2013-05-14 Thread Jacob Kaplan-Moss
FYI - djangoproject.com is currently down, I'm investigating and I'll try to have it back up ASAP. In the meantime, if you need to get to the docs, you can hit up the ReadTheDocs mirror: http://django.rtfd.org/ Thanks for your patience, Jacob -- You received this message becau

[ANN] Django 1.5.1 released

2013-03-28 Thread Jacob Kaplan-Moss
e a bit of it. For more details, see our announcement: https://www.djangoproject.com/weblog/2013/mar/28/django-151/ Thanks for using Django! Jacob -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Goodbye, Malcolm

2013-03-19 Thread Jacob Kaplan-Moss
Hello fellow Djangonauts, We have difficult news: Malcolm Tredinnick has passed away. Malcolm was a long-time contributor to Django, a model community member, a brilliant mind, and a friend. His contributions to Django — and to many other open source projects — are nearly impossible to enumerate.

ANNOUNCE: Django 1.4.5, 1.3.7 released, fixing packaging problems

2013-02-20 Thread Jacob Kaplan-Moss
releases-issued/. Sorry about the mixup! Jacob Kaplan-Moss -- 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: django user model json

2013-02-08 Thread Jacob Kaplan-Moss
o subclass AbstractBaseUser instead of User; see https://docs.djangoproject.com/en/dev/topics/auth/customizing/#substituting-a-custom-user-model for more details. Thanks, and again - sorry to be harsh on the security stuff. But it's important! Jacob -- You received this message because you ar

FYI: Scheduled downtime on djangoproject.com Thursday night

2013-01-29 Thread Jacob Kaplan-Moss
use the site for documentation, I'll remind you that you can always find a mirror of Django's documentation on Read the Docs: http://django.readthedocs.org/. Thanks! Jacob -- You received this message because you are subscribed to the Google Groups "Django users" group. To u

RE: Happy new year

2013-01-01 Thread Master Jacob
Happy new year from TEXAS! On Dec 31, 2012 11:49 PM, "JOSE LUIS FABREGA" wrote: > Feliz año nuevo, desde venezuela > > ¡Le deseamos lo mejor ! > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-u

Django questions.

2012-04-25 Thread jacob
answer for even a question on detail, I will appreciate it. Looking forward to hearing soon. Thanks & best regards - Jacob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@google

Re: Website Documentation Search broken?

2011-12-17 Thread Jacob Kaplan-Moss
there's a bug I'd like to fix it, but I'm not having any issues with "multiword searches"; for example: * https://docs.djangoproject.com/search/?q=form+wizard&release=5 * https://docs.djangoproject.com/search/?q=auth+middleware&release=5 * https://docs.djangoproject.

Re: Website Documentation Search broken?

2011-12-15 Thread Jacob Kaplan-Moss
's a proper search engine -- just not tuned perfectly. Jacob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email

Re: Website Documentation Search broken?

2011-12-14 Thread Jacob Kaplan-Moss
th.  With just "queryset", it is > even position 9. Thank - I'll look into that particular search and see if I can boost the right document to the top. If you find more like that drop a list into this thread and I'll take a look. Jacob -- You received this message because yo

Re: Newbie question - if I add "on delete cascade" to a foreign key on my MySQL db

2011-12-13 Thread Jacob Kaplan-Moss
On Tue, Dec 13, 2011 at 7:22 PM, Mike wrote: > will I still be able to use Django's ORM? Yes, please see https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.on_delete and in particular DO_NOTHING. Jacob -- You received this message because you are su

Re: Alternative to the .using() method

2011-10-11 Thread Jacob Kaplan-Moss
the app is your logging app, use the logging connection; otherwise, use the default connection. Jacob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe f

Re: Why can't "directly" change array elements of model objects in Django shell?

2011-10-07 Thread Jacob Kaplan-Moss
at which point Django performs a query with a LIMIT and OFFSET to just select that 3rd item. The entire list is never fetched. See https://docs.djangoproject.com/en/dev/ref/models/querysets/#when-querysets-are-evaluated for more details. Jacob -- You received this message because you are subscr

Re: queryset.delete() ON DELETE ...

2011-09-27 Thread Jacob Kaplan-Moss
there a way to leave this up to the database? I believe you're looking for `on_delete=DO_NOTHING` -- see https://docs.djangoproject.com/en/1.3/ref/models/fields/#django.db.models.ForeignKey.on_delete. This'll leave any cascading (or whatever) up to the database. Jacob -- You received t

Re: Customizing forms html

2011-09-21 Thread Jacob G
And I also want to display non-field errors after the form, not before. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/66g7i8P5DqEJ. To post to this group,

Customizing forms html

2011-09-21 Thread Jacob G
I'm trying to customize Django forms html based on three requirements: 1) Html output to match html given to me by a web site designer. 2) Automatically generate forms, so I don't have to duplicate html in templates. 3) Re-use as match of Django forms code as possible. For my first attempt, I'm w

Re: How to solve MultiValueDictKeyError

2011-09-21 Thread Jacob Kaplan-Moss
ered if you're polite and don't insult the work of a bunch of volunteers. Calling Django "unstable" is a really bad way to motivate the people who wrote it to try to help you out. Remember folks: at the other end of that email is "a real person, a lot like you" (h

Re: Where does form.is_valid() clean the form?

2011-09-21 Thread Jacob G
Thanks all. I figured out my mess-up: In the view, I instantiated the form incorrectly as follows: form = AuthenticationForm(request.POST) Instead of the correct way: form = AuthenticationForm(request, data=request.POST) The debugger weirdness distracted me from the real problem. I still don

Re: Where does form.is_valid() clean the form?

2011-09-20 Thread Jacob G
r. How can the code set a variable to None, and it is set to an empty ErrorDict? It seems like a practical joke or something. On Sep 20, 4:55 pm, Shawn Milochik wrote: > On Tue, Sep 20, 2011 at 4:46 PM, Jacob G wrote: > > I doubt I'm familiar enough with Django to fix bugs. > > Wa

Re: Where does form.is_valid() clean the form?

2011-09-20 Thread Jacob G
te: > On Tue, Sep 20, 2011 at 4:14 PM, Jacob G wrote: > > Thanks, I didn't realize errors is property that calls _get_errors(). > > Yeah, it's non-obvious. That's one of the nice things about > open-source, though. You can go through the code and understand how >

Re: Where does form.is_valid() clean the form?

2011-09-20 Thread Jacob G
Thanks, I didn't realize errors is property that calls _get_errors(). On Sep 20, 4:11 pm, Shawn Milochik wrote: > Take your study/research one step further: > > https://code.djangoproject.com/browser/django/trunk/django/forms/form... > > When it checks for self.errors, the _get_errors() function

Where does form.is_valid() clean the form?

2011-09-20 Thread Jacob G
The Django documentation says that a form is cleaned when calling is_valid(): https://docs.djangoproject.com/en/dev/ref/forms/validation/ (see first paragraph) However, the is_valid soure code doesn't show that is does clean, as follows: def is_valid(self): """ Returns True if the form has

Re: refreshing a page loaded via POST

2011-09-14 Thread Jacob Kaplan-Moss
request, 'some/template.html') The key part here to get is that you should always issue a redirect after a successful POST request. Jacob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Alter the list of fields returned by a queryset without turning them into strings?

2011-09-12 Thread Jacob Kaplan-Moss
you use ``defer()``/``only()`` and the access a field *not* in the select list Django will go perform another query for you, thus making things less efficient. So only reach for ``only()`` when you know you're only accessing the specific named fields (as it looks like you are in your example). Good

Re: Testing reusable apps

2011-09-02 Thread Jacob Kaplan-Moss
ss itself. You also might want to check out the tox.ini there too. Tox (http://tox.rtfd.org/) automates testing against multiple Python versions (and other types of variable dependencies) and can smooth out some of the steps in getting quality repeatable testing working. Jacob -- You receive

Re: HttpResponseRedirect adds hostname?

2011-08-23 Thread Jacob Kaplan-Moss
On Tue, Aug 23, 2011 at 4:01 PM, Jacob Kaplan-Moss wrote: > However, I believe it's not actually Django doing the rewriting. Scratch that: I'm wrong. Actually, Django *is* doing the re-writing: see https://code.djangoproject.com/browser/django/trunk/django/http/utils.py#L11. Sti

Re: HttpResponseRedirect adds hostname?

2011-08-23 Thread Jacob Kaplan-Moss
In Nginx, for example, I sometimes need to mess with the proxy_redirect directive (http://wiki.nginx.org/HttpProxyModule#proxy_redirect) to fix situations like this. Hope that helps, Jacob -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Cascading Deletes on ManyToManyField

2011-08-17 Thread Jacob Kaplan-Moss
> fields. However, I previously deleted data accidentally with ForeignKeys > because I did not understand cascading deletes, so I just want to make > sure. Yes, this is correct -- foreign keys cascade deletes by default; many to many fields don't. Jacob -- You received this message bec

Re: Django 1.3 admin added methods login requirement

2011-08-12 Thread Jacob Kaplan-Moss
atically protected. In any case, you'll need to use the admin site's ``admin_view`` decorator. See https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_urls for details. Jacob -- You received this message because you are subscribed to the Goo

Re: Calculation for each object in a QuerySet

2011-08-05 Thread Jacob Kaplan-Moss
was in your shoes, I'd use Claim.objects.raw() and just write a raw SQL query (see http://django.me/raw). Jacob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To

  1   2   3   4   5   6   7   >