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*
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
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
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
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
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
>
>
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
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
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
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
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
> 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
>
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
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
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
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
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.
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
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/
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
: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
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
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):
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
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
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
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
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
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
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.
>
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
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
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
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
>
> 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
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
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.
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:
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
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
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
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
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
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
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
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
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
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()
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
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
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
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 |
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
; 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'
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)
>
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
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
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.
--
+----
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
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 |
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
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.
--
+----+
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
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
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
&
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 [
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 |
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 |
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 |
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 |
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
, 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
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
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 |
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
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
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
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.
--
+-
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
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
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 |
--~--~-~--~~-
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
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 |
--~--~-~-
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
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?
--
+--
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
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] |
|
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|
--~--~
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
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 .
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
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
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
801 - 893 of 893 matches
Mail list logo