Re: Select2 field breaks in admin when extending change_form.html

2019-04-18 Thread Jason Burke
Greetings, I'm not sure I was clear earlier, so I'll reword the problem again here... *Issue/Problem/Bug:* Extending the admin/change_form.html template in order to modify the .form-row style causes the autocomplete (Select2) and raw id widgets to stop working as documented. *Problem behavior*

Re: Align Two buttons in a TD

2020-10-24 Thread Jason R
I'd wrap your td element in a container and display it as a flex element. That will probably conflict with bootstrap though. On Sat, Oct 24, 2020 at 7:27 PM Walter Randazzo wrote: > Sorry, I forgot to attach the file. This is how the template looks like > now: > > El sábado, 24 de octubre de 202

Re: Try to make startapps but getting error

2021-04-15 Thread Jason Turner
Name the app something other than hello_world. It appears as if there is a conflict. On Thu, Apr 15, 2021, 8:23 AM Binay kumar wrote: > CommandError: 'hello_world' conflicts with the name of an existing Python > module and cannot be used as an app name. Plea se try another name. > > please help

Re: how to prevent Django do auto capitalize static text in templates

2021-05-18 Thread Jason Turner
Have you tried Bootstrap's class="text-lowercase"? On Tue, May 18, 2021, 8:23 AM Samuel Nogueira wrote: > I am using bootstrap, so my CSS shouldn't go wrong > > > Em ter., 18 de mai. de 2021 às 10:04, 712189512 < > gabrielstonede...@gmail.com> escreveu: > >> It’s not django that’s doing that,hav

Re: How to update old data with new data everyday from a scraper

2021-09-18 Thread Jason Turner
Take a look at update_or_create() https://docs.djangoproject.com/en/3.2/ref/models/querysets/#update-or-create On Sat, Sep 18, 2021, 9:27 AM Adib Neymar Jr. wrote: > Hello, > > What is a good way to compare new data with old data which is updated > everyday with Django ORM? Basically I have a s

Re: selectfilter2 javascript and django

2020-03-26 Thread Jason Liu
Thank you so much for providing the solution, it solved my problem as well. On Wednesday, April 29, 2015 at 6:34:25 AM UTC-7, Dimitris Kougioumtzis wrote: > > > ok i found it > > in the urls.py i add the > > (r'^jsi18n/$', 'django.views.i18n.javascript_catalog'), > > > and in template > >

Re: Dynamic Radio Form

2020-05-05 Thread Jason Turner
Thanks. That makes sense. Appreciate your help. On Tue, May 5, 2020, 11:11 AM Chetan Ganji wrote: > To answer your question, you could add an extra field on schedule model to > store the winner > e.g. winner = models.CharField(max_length=55) > > IMO, league and team in the schedule model should

Re: EmptyDataError at /upload_reading while reading csv file using pandas

2020-05-25 Thread Jason Turner
Are you sure the file is coma delimited? This error is usually because the file is not coma separated. On Mon, May 25, 2020, 5:04 PM jakote lejaha wrote: > Ideally I would have wanted to use the "csv.reader" function, but in this > case it becomes complicated as I would like to load the cvs file

Re: EmptyDataError at /upload_reading while reading csv file using pandas

2020-05-26 Thread Jason Turner
Is the csv something you created? Or was it given to you? I use pandas extensively & the times I've received that error, the issue has been with the file itself. Ard there blank line(s) at the top of the file? On Tue, May 26, 2020, 4:11 AM jakote lejaha wrote: > The same very same file works f

Re: how to make docker image of your django app

2020-06-17 Thread Jason Turner
https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/ Also, Will Vincent's book "Django for Professionals" is a good resource. On Wed, Jun 17, 2020, 8:51 AM Anirudh choudhary < anirudhchoudary...@gmail.com> wrote: > I Want to make make a docker image of my Django app us

Re: Need to Replace django default I'd with UUID field

2022-11-22 Thread Jason Turner
I would just add another column that holds the UUID value instead of changing the default ID. On Tue, Nov 22, 2022, 12:55 PM Rajesh Kumar wrote: > Hi everyone! > Hope everyone is doing well... > > Actually I have 100+ existing data in my database with default I'd field > of django > Now I need t

Re: Validations and error messages

2008-07-12 Thread Jason S. Friedman
> Hi, > > This is my second hour with django. I have been working Rails but now > I am learnign some django too. > > I wonder how do you validate numeric, alphabetic, mix, special > characters data before calling save() ? > > And do you get any return after calling save()? I didnt get any on >

Re: django takes all my toys

2010-05-10 Thread Jason R. Leveille
On May 10, 9:31 pm, "ah...@cs.ucla.edu" wrote: > Hi, > > I don't know very much about django, except that a piece of software > that one of my colleagues developed requires it to function properly. > > My problem is as follows : I have inherited responsibility for > installing the aforementioned s

Re: Can't display data from app in flatpages

2012-12-20 Thread Jason Arnst-Goodrich
The flatpages view is not provided the context which includes 'posts'. IMO you are correct with the {% load posts %} technique because it is entirely as result of the template you are using that requires you display that information -- if that makes sense. In other words it's not because of the

Re: How can i redirect a form to amother page when validation is correct

2013-01-24 Thread Jason Arnst-Goodrich
It's not redirecting because the following statement never evaluates to True: if accept is not None and accept.is_active: You are using auth.authenticate (see below) but I don't think that's what you want in this case. auth is the built in django auth system which your code isn't using. acce

Re: Error passing data from views to template

2013-02-18 Thread Jason Arnst-Goodrich
return render_to_response('home/about.html', data, 'context_instance=RequestContext(request)') Change that to: return render_to_response('home/about.html', data, context_instance=RequestContext(request)) The context_instance is an optional keyword argument. Right now you're passing it as a po

Re: Django Form Designer

2013-03-08 Thread Jason Arnst-Goodrich
I never knew this existed. I do hope someone continues development... On Thursday, March 7, 2013 8:39:56 AM UTC-8, Daniele Procida wrote: > > I like and use Django Form Designer, < > https://github.com/philomat/django-form-designer>, but it hasn't been > updated for a while and needs some work.

Re: linux or windows

2013-05-31 Thread Jason Arnst-Goodrich
I'd just like to chime in as another "develop on windows, deploy to linux" guys. It's worked fine for me for years. Like people have said, sometimes it's hard to get certain libraries for Windows installed but it's usually not to hard to find a packaged solution if you google (and in simple pro

Re: On live site, DatabaseError tables not found; dbshell shows tables but apache can't find the database?

2013-06-08 Thread Jason Arnst-Goodrich
Does apache have write permissions on the DB folder(s). I know you'll get errors if you don't have permission for the db file itself AND the folder containing it. On Saturday, June 8, 2013 10:16:46 AM UTC-7, Brian Lee wrote: > > Very good guess... but I looked and in both manage.py and mysite/

Class Based CreateView with foreign key question

2013-06-10 Thread Jason Arnst-Goodrich
I'm having trouble wrapping my head around how to use generic class based views properly when it comes to creating objects associated with already created objects. The concept here is adding File objects to a Case object. The url pattern would be something like: url(r'^case/(?P\d+)/add/$', Add

Re: Class Based CreateView with foreign key question

2013-06-11 Thread Jason Arnst-Goodrich
:38:09 PM UTC-7, Jason Arnst-Goodrich wrote: > > I'm having trouble wrapping my head around how to use generic class based > views properly when it comes to creating objects associated with already > created objects. > > The concept here is adding File objects to a Cas

Re: Class Based CreateView with foreign key question

2013-06-13 Thread Jason Arnst-Goodrich
That reassures me then. In the past I stayed away from the generic class based views and in my current project I'm using nothing but them. Everything is working but it's not clear by looking at it *why* it works. There might be a little too much magic happening for my liking but I'm going to s

Re: Class Based CreateView with foreign key question

2013-06-13 Thread Jason Arnst-Goodrich
I should also clarify just in case anyone else runs into the same problem in the future: My form_valid() was not working correctly because I had my form definition excluding a (required) field so it would NEVER be able to save my model under any circumstance. def form_valid(self, form):

Re: Django ModelForm is_valid & form_valid

2013-06-20 Thread Jason Arnst-Goodrich
This is a common problem to run into. def form_valid(self, form): customer = form.save(commit=False) customer.store = self.request.user.active_profile.store customer.save() return super(CustomerInformationView, self).save(form) super(CustomerInformationView, self).save(form)doesn't really

Re: How to access request/session information from model.clean?

2013-06-21 Thread Jason Arnst-Goodrich
If you want to update the initially selected value (but still allow the user to select a different site)I think you're on the right track with ModelAdmin.get_form If you want to completely restrict them to their current session's site you'll want to use a combination of ModelAdmin.get_form (to

Re: An easy way to integrate Jcrop in Django's admin?

2013-06-26 Thread Jason Arnst-Goodrich
As a former PHP programmer who's switched to Django - Trying to modify the administration app can be hard. It's something I still stay away from because I feel once you start adding functionality that doesn't come working out of the box, you're better off building your own admin app. I don't t

Re: ANN: django-otp and friends: one-time passwords and trusted agents

2013-06-28 Thread Jason Arnst-Goodrich
I just stumbled on this and it looks absolutely amazing. I do have one request though: can we get a sample project up that uses Google's authenticator (or anything else). This looks like the best solution for two factor authentication for Django but I don't think many people will know where to

Re: A PHP framework with some Django features?

2013-06-28 Thread Jason Arnst-Goodrich
Nobody's ever switched FROM Django TO PHP as far as I know :) But like others have already said - there's plenty of good frameworks that accomplish the same things Django does in PHP. Unless you truly love PHP I'd take the time to learn Django instead. :P On Friday, June 28, 2013 10:17:50 AM UT

Re: ANN: django-otp and friends: one-time passwords and trusted agents

2013-07-01 Thread Jason Arnst-Goodrich
eate a TOTP or HOTP device (usually the former), encode the key with > base32, build a URI as documented, and render a QR code for the user to > scan. Alternatively, the user can also type the base32-encoded key in > manually. > > > [1] http://code.google.com/p/google-aut

Re: ANN: django-otp and friends: one-time passwords and trusted agents

2013-07-02 Thread Jason Arnst-Goodrich
xists? Or allow some parameter controlling the save on the method? Or maybe provide a separate class method? On Monday, July 1, 2013 10:14:35 PM UTC-7, Jason Arnst-Goodrich wrote: > > I'm glad you saw my message - if nothing else just so you know this > project is appreciated. >

Re: Install MySQL for Python Django on my Windows PC

2013-08-06 Thread Jason Arnst-Goodrich
Another tip is to check out Bitnami. I've used them a couple times now (both VMs and stack installs). They do a pretty good job of getting a stack you want on Windows real fast. http://bitnami.com/stack/django/installer (note it comes with MySQL and Postgres) -- You received this message beca

Re: ANN: django-otp and friends: one-time passwords and trusted agents

2013-08-09 Thread Jason Arnst-Goodrich
een the decorated-view pattern and the > view-as-class pattern. In any case, I expanded the otp_required decorator > to take an if_configured argument. New versions of django-otp and > django-otp-agents are available. > > Thanks so much for your feedback. Do keep in touch

Re: ANN: django-otp and friends: one-time passwords and trusted agents

2013-08-09 Thread Jason Arnst-Goodrich
I thought about that and I didn't like that it logged them in if they failed the OTP token. I'll probably use it for now. The only reason being I want them to do it in a single "attempt session". If they login half way and leave for a couples minutes I want them to supply the regular login cred

Re: Creating an "Edit Page"

2013-08-13 Thread Jason Arnst-Goodrich
You might want to look into class based views: https://docs.djangoproject.com/en/dev/topics/class-based-views/ These are then extended to create "generic views" that handle a lot of these common patterns. there's something called an "UpdateView" that handles this exact pattern: https://docs.dja

Re: Representing infinity or "no limit" in an integer field?

2013-08-19 Thread Jason Arnst-Goodrich
> > Problem is that usually databases aren't very fast to search NULL values > so if you have to for example produce often list of products that you can > buy "infinite amount", you would like to consider using value(s) that don't > conflict from valid set of values. I'm pretty sure that's no

Re: Representing infinity or "no limit" in an integer field?

2013-08-20 Thread Jason Arnst-Goodrich
inen wrote: > > On Mon, 19 Aug 2013 11:14:54 -0700 (PDT) > Jason Arnst-Goodrich > wrote: > > > > > > > > > Problem is that usually databases aren't very fast to search NULL > values > > > so if you have to for example produce often list of p

Re: Django ORM: default value from sql query

2013-08-22 Thread Jason Arnst-Goodrich
I don't think that will work because the default value is unrelated to a specific instance of a model and you want it to depend on the instance if I'm not mistaken. Once the instance exists, we're past the point where a default value will be used. I think you'll have to handle this in a view.

Re: Widget isn't sticking?

2013-11-13 Thread Jason Arnst-Goodrich
Try: expiry_date = forms.DateField(widget=CalendarWidget()) On Tuesday, November 12, 2013 5:41:27 PM UTC-8, Lachlan Musicman wrote: > > Hola, > > I've set up a CalendarWidget as per the docs > https://docs.djangoproject.com/en/1.6/topics/forms/media/ and can see > correct results in the shell:

Re: Widget isn't sticking?

2013-11-13 Thread Jason Arnst-Goodrich
7;datepicker'})) On Wednesday, November 13, 2013 1:31:40 PM UTC-8, Lachlan Musicman wrote: > > Nothing, unfortunately. > > On 14 November 2013 07:37, Jason Arnst-Goodrich > > > wrote: > > Try: > > > > expiry_date = forms.DateField(widget=Ca

Re: Timeseries Data Collection as a Reusable App

2014-03-11 Thread Jason Arnst-Goodrich
Without knowing much about your specifics, I would suggest looking into MongoDB. You'll have some of the issues in #2 and you obviously won't have a generic app that people without Mongo can use but I'd at least look into it before you go any further. On Tuesday, March 11, 2014 8:42:24 AM UTC-7

Re: Django Form Question, Last Post Wasn't Formatted Correctly So I Deleted and Made a New One.

2014-05-14 Thread Jason Arnst-Goodrich
You're passing two different dictionary parameters there. Try something like this: ctx = { 'customers':customers, 'form': form } return render_to_response('index.html', ctx) On Wednesday, May 14, 2014 3:22:22 PM UTC-7, G Z wrote: > > def index(request): > form = SignUpFo

Re: Redirecting within custom template tags

2007-07-06 Thread Jason F. McBrayer
in the template tags. It is probably best for you to just let the article page handle form submissions, so it can handle the errors as well. -- +---+ | Jason F. McBrayer[EMAIL PROTECTED] | | If someone conquers a thousa

Re: --+++Does anybody have instructions to make a photo app+++--

2007-07-06 Thread Jason F. McBrayer
Naco <[EMAIL PROTECTED]> writes: > Well im looking for tutorials on building a simple photo app to start > with Have a look at stockphoto (http://www.carcosa.net/jason/software/django/stockphoto/). It is a bit out of date, and has a few bugs and so forth that are on my to-fix lis

Re: Django's User authentication

2007-07-18 Thread Jason F. McBrayer
the use of your user object in your views and templates. -- +-------+ | Jason F. McBrayer[EMAIL PROTECTED] | | If someone conquers a thousand times a thousand others in | | battle, and someone else conquers himself, the latter one

Re: Help accessing user.

2007-10-01 Thread Jason C. Leach
t; no way of passing the object from one view to another. You must > enable sessions in order to store the user associated with any given > login. Refer to the django documentation for sessions. > -richard > > On Oct 1, 2007, at 9:46 PM, Jason wrote: > > > > > Hi: &g

Re: Help accessing user.

2007-10-01 Thread Jason C. Leach
Nevermind - I got it. Thanks. On 10/1/07, Jason C. Leach <[EMAIL PROTECTED]> wrote: > Hi: > > I have sessions installed - and working. Just don't know how to get at them > from > in a template? {{ request.session.user }}? Noting seems to work. > > On 10/1/07

Re: Can't get my URLs right.

2006-12-27 Thread Jason C. Leach
Thanks. Probably the one thing I didn't try. J. On 12/27/06, Jorge Gajon <[EMAIL PROTECTED]> wrote: On 12/27/06, Jason <[EMAIL PROTECTED]> wrote: > > So now that I add an about page, as www.foo.com/about what I get is a > bunch of 404 errors because it's lo

ChoiceField and dynamic input?

2006-12-27 Thread Jason Barrett Prado
Is this even possible, or is it not implemented correctly yet? I have done every last thing I can think of that makes any sense and the results are never what I want. if not request.POST.has_key('submit'): s = get_object_or_404(School, pk=school_name) f = UserRegistrationForm()

Re: Project and App Layout.

2006-12-27 Thread Jason C. Leach
og in, registration, news or shopping section). Thanks, J. On 12/27/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: On 12/27/06, Jason <[EMAIL PROTECTED]> wrote: > So when I start a new project, it has some basic content like an index, > about, contact, and so on. Where does this g

Re: ChoiceField and dynamic input?

2006-12-27 Thread Jason Barrett Prado
clear. On 12/27/06, Jason Barrett Prado <[EMAIL PROTECTED]> wrote: You're correct, we found the same thing on IRC. However, to get a ChoiceField to render your choices in the Select widget, you set field.widget.choices, not field.choices. This is, of course, not documented and incr

Re: Complex Data Models.

2006-12-27 Thread Jason C. Leach
Hi: Specifically, I'm curious how you do it without putting SQL in the view. From what I understand about the methodology of MVC this should not be done. J. On 12/27/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: On 12/27/06, Jason <[EMAIL PROTECTED]> wrote: > What do w

Re: Problems with User Auth stuff

2005-08-08 Thread Jason F. McBrayer
o? Or should this kind of thing be on the devel list? -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: Existing Database?

2005-08-19 Thread Jason F. McBrayer
t are no > SQL databases.) I am interested in this as well. I've seen some examples of adding non- database methods to a model, but nothing that is entirely dissociated from an SQL database. -- +----+ | Jason F. McBrayer

Re: IMPORTANT: Django model syntax is changing

2005-08-26 Thread Jason F. McBrayer
; TypeError: got unexpected keyword argument 'user_id__exact' > I've tried a few variations on the keyword argument, and can't seem to find what it is now looking for. I regenerated the database from the model (sqlreset) and populated it a bit, just to make sure that wasn'

Re: IMPORTANT: Django model syntax is changing

2005-08-26 Thread Jason F. McBrayer
On Fri, 2005-08-26 at 13:33 -0500, Adrian Holovaty wrote: > On 8/26/05, Jason F. McBrayer <[EMAIL PROTECTED]> wrote: > > > In [1]: from django.models.engulf import feeds, users, articles, categorys > > > In [2]: c = categorys.get_list(user_id__exact=1) >

Basic file upload (not model file object)

2005-08-29 Thread Jason F. McBrayer
g, and obviously it shouldn't be. So what's going wrong here? It's surely something that should be completely obvious, but somehow I'm just managing to miss it. -- ++ | Jason F. McBrayer [EMAI

Re: Basic file upload (not model file object)

2005-08-29 Thread Jason F. McBrayer
eUploadField), but somewhere else, either in my template or my view, but I am unable to find the problem (so far). Thanks for the input. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to m

Re: Basic file upload (not model file object)

2005-08-30 Thread Jason F. McBrayer
The "enctype" on the form was "multipart/form_data" rather than "multipart/form-data". Too much typing python, I guess ;) Thanks, all, for the response. As I said, I knew it had to be something stupid. -- +----

Re: User Authentication - What's the best way?

2005-08-30 Thread Jason F. McBrayer
o (as I'm using python 2.3): def view(req): blah blah blah... view = util.login_required(blah) > Anyone point me in the right direction? Or even a breif explanation of > how django's admin authentcation works might get me going. I arrived at this solution by looking at th

Re: Storing models in sessions

2005-08-31 Thread Jason F. McBrayer
pt database space which you can reclaim when it's convenient. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: initial data

2005-09-01 Thread Jason F. McBrayer
models, instantiates objects, and saves them. Or, of course, you could use the admin interface, but that would quickly get tedious. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythoc

Re: internal_error.html?

2005-09-06 Thread Jason F. McBrayer
ts the stalls, at least for browsers that support gzip encoding! I am not, at this time, sure where the problem lies; whether it is in django's WSGI interface, in flup's fcgi-wsgi adapter, or in Apache's mod_fcgi. -- +----+

Packaging django apps

2005-09-08 Thread Jason F. McBrayer
people expect from a third-party django app by way of packaging? Just a tarball of the app and templates directory? Install scripts? README, COPYING, and INSTALL documents? -- +----+ | Jason F. McBrayer [EMAIL

Dealing with long operations in views

2005-09-08 Thread Jason F. McBrayer
after sleeping a little or via a temporary page, even though you don't know for sure that the job is done? Is it even safe to use a thread or forked process to do the work? -- +----+ | Jason F. McBrayer [EMAIL

Re: Packaging django apps

2005-09-09 Thread Jason F. McBrayer
On Thu, 2005-09-08 at 19:21 -0700, Jason Huggins wrote: > Jason F. McBrayer wrote: > > Hi. I've more-or-less finished a django app that might be useful to > > other people > > > I'd like to package this for other people in a way that is as convenient &

Re: django in a production environment

2005-09-12 Thread Jason F. McBrayer
Also on shared hosting, it is probably a bit less common than mod_fastcgi (not sure). If the server is dedicated to your django website, then neither of these is probably a problem. -- +----+ | Jason F. McBrayer [

Re: django in a production environment

2005-09-13 Thread Jason F. McBrayer
according to the documentation, which rules it out for me. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: redirecting subdomain requests

2005-10-16 Thread Jason F. McBrayer
edirect. But learning just enough about mod_rewrite to do the job would probably be less work. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: E-Commerce / Credit Card Processing

2005-12-01 Thread Jason F. McBrayer
or taking some other approach? -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: ANN: Django site on washingtonpost.com

2005-12-06 Thread Jason F. McBrayer
No in the entry afaict. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: Adding ManyToMany relationships

2005-12-08 Thread Jason F. McBrayer
little slow, at least partly because the whole list must be fetched and updated before set_FOOs() gets called. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don

Re: Do I use @login_required to extend authentication?

2006-02-02 Thread Jason F. McBrayer
, or periodically by a grim record reaper but I haven't found that necessary yet. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more

Re: Do I use @login_required to extend authentication?

2006-02-03 Thread Jason F. McBrayer
On Thu, 2006-02-02 at 12:32 -0800, Jason Huggins wrote: > Hmm... Jason, your code is probably the "next logical step" for my > hack. The following is the right link to your code, yes? > -->http://www.carcosa.net/jason/blog/computing/django/authentication-2005-12-05-13-25.htm

Re: memory usage

2006-02-08 Thread Jason F. McBrayer
es memory usage. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus |

Re: login via url

2006-02-08 Thread Jason F. McBrayer
p quite a few new ways to steal credentials (think about referrers, and about httpd logs). -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him mor

Re: truncate html filter?

2006-02-09 Thread Jason F. McBrayer
thon interface to HTML Tidy: Beautiful Soup (http://www.crummy.com/software/BeautifulSoup/) might also be something to look at for this. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wi

Re: only show something(form) if javascript-enabled

2006-02-21 Thread Jason F. McBrayer
en form that they legitimately want to submit. I know you know that you can't rely on client-side validation, but I just want to say, you _really_ can't rely on client-side validation. -- +----+ | Jason F. McBrayer

Re: using the devel-webserver for production?

2006-02-21 Thread Jason F. McBrayer
gabor <[EMAIL PROTECTED]> writes: > i'll set up something "serious" then there. i think i'll go with the > lighttpd+fcgi approach. You can also build mod_fastcgi for Apache 1.3. -- +-

Re: only show something(form) if javascript-enabled

2006-02-21 Thread Jason F. McBrayer
that does what you want, rather than trying to use client-side code to generate stuff to be sent to an existing view. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy

Re: Multi-page forms

2006-02-23 Thread Jason F. McBrayer
ou probably want to do validation of a field on the page where the user actually entered it. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't g

Re: Multi-page forms

2006-02-24 Thread Jason F. McBrayer
ced by the second page. -- +----+ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus | --~--~-~--~~-

Re: session auto-logout

2006-03-21 Thread Jason F. McBrayer
required and redirect them. Also, if they already had an old session, it will have the default long expiry time. You may wish to flush the core_sessions table and see if it's working for you afterwards. -- +----+ | Jason F. McBraye

Re: Model Inheritance

2006-05-05 Thread Jason F. McBrayer
n the Floating Sargasso branch, or to take one of those desperate measures? -- ++ | Jason F. McBrayer [EMAIL PROTECTED] | | "If you wish to make Pythocles wealthy, don't give him more | | money; rather, reduce his desires."-- Epicurus | --~--~-~-

Re: Model Inheritance

2006-05-06 Thread Jason F. McBrayer
ibly third-party) apps to use it instead of django auth. Let me know when and how I can help on the new-auth branch. -- ++ | Jason F. McBrayer [EMAIL PROTECTED] | | "If y

FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread Jason F. McBrayer
write my own field class for the purpose? Move the file someplace else in the model's save() method? Use the normal setup, but lock down that subdirectory of MEDIA_ROOT in the webserver's configuration? Something else? -- +--

Re: FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread Jason F. McBrayer
IA_ROOT, but on the other hand, I'd like to be as webserver-agnostic as possible. -- +-------+ | Jason F. McBrayer[EMAIL PROTECTED] | | A flower falls, even though we love it; and a weed grows, | | even thoug

Re: FileFields, MEDIA_ROOT, and private media

2006-06-06 Thread Jason F. McBrayer
as simple as possible and do more complex things on the application side. In this case, it's not too bad; I'll just have to document it adequately. Thanks again. -- +---+ | Jason F. McBrayer[EMAIL PROTECTED] | |

Re: syncdb without shell access

2006-08-16 Thread Jason F. McBrayer
yncdb: just modify your local settings.py to point to your database on your provider, and run syncdb there. -- +---+ | Jason F. McBrayer[EMAIL PROTECTED] | | A flower falls, even though we love it; and a weed grows, | | even though we do not love it.-- Dogen| --~--~

Re: Python Django Training

2020-02-02 Thread Charles Jason Decena
i am also interested Charles Jason Decena Developer 33F UnionBank Plaza Bldg., Meralco Ave. Ortigas Center, Pasig City www.ubx.ph [image: linkedin] <https://www.linkedin.com/company/ubx-philippines/> [image: facebook] <https://www.facebook.com/ubxphilippines/> [image: twi

Re: to make a wish list .

2019-10-28 Thread Charles Jason Decena
Try putting foreign key to the wishlist model On Friday, October 25, 2019 at 7:56:42 PM UTC+8, Shubham Mishra wrote: > > hello, > I am Surendra Mishra , I am student currently i'm learning django. > I applied for internship , but they gave me a task if i complete then they > will consider me .

Re: ModuleNotFoundError: No module named 'mysite.polls'

2019-10-28 Thread Charles Jason Decena
mysite.apps.polls would solve your problem On Sunday, October 27, 2019 at 1:01:09 AM UTC+8, Beto Joaquim wrote: > > hello guys I'm new on Django and I would like to ask your help, I've added > "mysite.polls'' to my SETTINGS > Installed app... but it still say " > ModuleNotFoundError: No module

Re: beginner's question

2019-11-05 Thread Charles Jason Decena
Hi, what you have entered is a command on checking on what django version is installed on your machine, i suggest you create pipenv or venv everytime you create projects in order to eliminate other dependencies not required for your project Regards, Charles Jason Decena Developer 33F UnionBank

Handler 500

2019-12-03 Thread Charles Jason Decena
is there a way to retrieve the handler 500 data/error? and also can i have multiple handler 500 in my base url in order to be dynamic? and how to get the error message in handler500 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

<    4   5   6   7   8   9