Search forms: keeping it clean

2008-05-23 Thread Will
ssing the POST data and creating a queryset manually, I want to create a QuerySet based on all the fields for which data has been entered (perhaps using a default search method for each field) and using the AND operator everywhere. Is this possible as standard, or will I need to subclass ModelForm and

Navigation components

2008-06-02 Thread Will
t page element. This will be much quicker to implement and not too obtrusive on failure. Cheers, Will T --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Re: Navigation components

2008-06-03 Thread Will
o about section navigation into the context - is is hard-coded into the view? This is what I'd like to avoid. Cheers Will --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

psycopg2

2008-06-24 Thread Will
I'm working on a project I'd like to use Django for, though my first hurdle will be convincing a team of highly qualified scientists, programmers and computer scientists that this is a good idea. Given we are most likely going to use PostgreSQL, This isn't particularly

Re: psycopg2

2008-06-24 Thread Will
ou get when googling psycopg is a rant containing swear words, it's not particularly confidence inspiring. Will --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: psycopg2

2008-06-24 Thread Will
u... All I'm asking for is some reason to trust the integrity of psycopg, and all I'm getting from you is sarcasm. Perhaps you could provide me with some links? Cheers, Will --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: psycopg2

2008-06-24 Thread Will
I really didn't want to turn this into a fight, and I apologise if my posts have seemed inflammatory. I'd just like to be able to trust all my stack. Will --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: psycopg2

2008-06-24 Thread Will
On Jun 24, 7:06 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Tue, Jun 24, 2008 at 12:20 PM, Will <[EMAIL PROTECTED]> wrote: > > I really didn't want to turn this into a fight, and I apologise if my > > posts have seemed inflammatory. I'd

Re: psycopg2

2008-06-24 Thread Will
Thanks for taking the time to write that, Federico. My worries stemmed from my not being able to find any clear information on psycopg, but I feel a lot happier now. Cheers Will --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: psycopg2

2008-06-26 Thread Will
project. Thanks Federico, btw for your very useful info. Will --~--~-~--~~~---~--~~ 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 unsu

Re: psycopg2

2008-06-27 Thread Will
ld I have to write an entire new backend for postgres, just to use a different driver? Cheers Will --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: psycopg2

2008-06-27 Thread Will
u’re using a >database with Django, DATABASE_ENGINE must be set to one of the following >>strings: >postgresql >postgresql_psycopg2 >etc I hadn't realised it was only 100 lines or so of code to write a new backend. Will --~--~-~--~~~---~--~

Re: How to use SplitDateTimeWidget (getting TypeError)

2007-09-26 Thread Will
On Sep 25, 1:15 pm, Kyle Fox <[EMAIL PROTECTED]> wrote: > I'm trying to use a SplitDateTimeWidget for a forms.DateTimeField > field, but keep getting TypeError: "expected string or buffer" > > The traceback leads to `strptime.py`, which has `found = > format_regex.match(data_string) `. The local

Re: Django docs failing with search docs - certificate has expired

2022-02-03 Thread Will
I'm having the same issue starting about 10 minutes ago. For docs.djangoproject.com and code.djangoproject.com. Root domain works fine. On Wednesday, February 2, 2022 at 11:24:45 PM UTC-5 Mike Dewhirst wrote: > > Error 503 certificate has expired > > certificate has expired > > > Guru Mediation:

urlize filter does not handle trailing 'dot-dot-dot' correctly

2014-11-04 Thread will
ion and whatnot) correctly, since it assume that the url can only have 1 trailing punctuation character. should I open a pull request for this, or was this problem raised before? regards, Will -- You received this message because you are subscribed to the Google Groups "Django users&qu

Best Django Open Source Project for Intermediate Django Learners

2015-09-01 Thread will
I have gone through official Django Poll app tutorial, Django Girls tutorial, and several simple examples. Could anyone recommend one or several best open source Django project for people like me to ramp up the django skills further? Some good one I have heard about is as follows: NewsBlur Ev

Are Querysets threadsafe?

2008-10-29 Thread Will McGugan
Hi, Are querysets threadsafe? i.e. If a query set object is shared across requests, will it cause any issues? I ask because some of the code in django/db/models/query.py looks like it might access the same resources if called simultaneously from two threads. Regards, Will McGugan http

Query spanning two foreign keys

2008-11-15 Thread Will McCutchen
;> chat = Chat.objects.get(pk=1) >>> user = set([post.user for post in chat.posts.all()]) Any suggestions? Do I need to resort to raw SQL? Thanks, Will. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: Query spanning two foreign keys

2008-11-16 Thread Will McCutchen
On Nov 15, 7:55 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > This should do the job: > >         User.objects.filter(posts__parent__pk=1).distinct() That does the trick. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Change message unicode issue

2008-12-05 Thread Will McGugan
ntrib/admin/options.py in construct_change_message 347. change_message.append(_('Changed %(list)s for %(name)s "%(object)s".') ... -- Will McGugan http://www.willmcgugan.com --~--~-~--~~~---~--~~ You received t

I'm moving to Oxford

2009-01-14 Thread Will McGugan
Hi, I'm sending this out to everyone in my gmail contacts, because I'm lazy. Apologies if you don't need to know this. I'm moving to Oxford tomorrow (Thursday 15th). Please get in touch if you need my new address. My landline will change, but you can always get me on my

how to display date nicely

2008-08-18 Thread Will Rocisky
I have a datetime object '2008-15-06 11:12:13' I want to display it like 'June 6, 2008 at 11:12' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

Re: how to display date nicely

2008-08-18 Thread Will Rocisky
actually I have to do it in views, not template I need some pure python code On Aug 18, 5:14 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Wiadomość napisana w dniu 2008-08-18, o godz. 13:08, przez Will Rocisky: > > > I have a datetime object '2008-15-06 11:12:13' &

how to pass value to other action

2008-08-19 Thread Will Rocisky
I am actually making a sort of wizard in which all values have to be saved at the end. I want to pass a variable from one action to another after pressing 'Next' with HttpResponseRedirect --~--~-~--~~~---~--~~ You received this message because you are subscribed to

how to populate data again after validation

2008-08-20 Thread Will Rocisky
I am not using builtin {{form}} to print form in template. I am using my own things. Now, after validation, when it shows error and comes back to form, all the data has disappeared. How can I keep data in fields even after validation. I am using render_to_response --~--~-~--~~---

Re: how to populate data again after validation

2008-08-20 Thread Will Rocisky
odgers" <[EMAIL PROTECTED]> wrote: > Hello, > > How are you doing your validation? Is the form populating a model instance > or doing something else? > > I would be helpful to see some of the function in your views file. > > Em > > > -Original Message

Re: how to populate data again after validation

2008-08-20 Thread Will Rocisky
errors to the template, but not the > other form values. If you want the previous data, you will need to put it in > your context. > > Is any validation working at all, and is it saving any data to the db? It > looks like you are calling is_valid on your POST data (not on an instance of

auto urls for methods

2008-08-21 Thread Will Rocisky
Is it possible (like Rails) to not to enter every method and it's url everytime? And url should go to the method straight unless defined. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

AND OR in ifequal

2008-08-22 Thread Will Rocisky
how do you put AND, OR in ifequal statement of django? --~--~-~--~~~---~--~~ 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

value taken through textarea is being displayed in one line

2008-08-26 Thread Will Rocisky
I am taking an input from user in text area, like comments. but when I print them, they all display in one line. how can I format them to display exactly how use entered them? (new lines, tabs etc) --~--~-~--~~~---~--~~ You received this message because you are subs

average posts per month?

2008-09-01 Thread Will Rocisky
How do I find average number of posts per month? --~--~-~--~~~---~--~~ 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,

Re: average posts per month?

2008-09-01 Thread Will Rocisky
yeah, I am visiting that group :) On Sep 1, 6:55 pm, "Artis Caune" <[EMAIL PROTECTED]> wrote: > On Mon, Sep 1, 2008 at 2:54 PM, Will Rocisky <[EMAIL PROTECTED]> wrote: > > > How do I find average number of posts per month? > > For more options, visit

Re: average posts per month?

2008-09-01 Thread Will Rocisky
Oh! I am talking purely about Django models and queries here. I have a model Post. I want to find out average number of posts posted by user :D On Sep 2, 1:04 am, "James Matthews" <[EMAIL PROTECTED]> wrote: > On the sides it should say the stats! > > > > > >

Recursive relationship - two models, same table

2008-10-01 Thread Will Temperley
t works, it's just v messy! Is there a better way to do this?? >From my point of view it would just be much easier to have multiple ModelAdmin classes use a single Model, but I can't do this can I? Cheers Will T class InstitutionDepartment(models.Model): TYPE

Strange problem with 'syncdb' not finding application models

2008-10-20 Thread Will Boyce
I was throwing together a (supposedly quick!) project today to gather some information from customers, however I hit a stumbling block a while back and I now feel like I'm banging my head on a brick wall.. I've modified the syncdb process to be a bit more verbose: ..snip.. Loading granular_permi

Re: Strange problem with 'syncdb' not finding application models

2008-10-20 Thread Will Boyce
Permission On Oct 20, 12:30 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Oct 20, 12:26 pm, Will Boyce <[EMAIL PROTECTED]> wrote: > > > > > I was throwing together a (supposedly quick!) project today to gather > > some information from customers, however I hit a

Re: trouble with Django and javascript

2009-02-01 Thread Will Matos
Onclick="submit();" Will Matos TCDI Director of Technical Sales 4510 Weybridge Lane Greensboro, NC 27407 336.232.5832 office 336.232.5850 fax 336.414.0467 mobile - Original Message - From: django-users@googlegroups.com To: Django users Sent: Sun Feb 01 19:52:49 2009 S

Re: trouble with Django and javascript

2009-02-01 Thread Will Matos
Onclick="test();submit();" Will Matos TCDI Dir. of Tech. Sales - Original Message - From: django-users@googlegroups.com To: Django users Sent: Sun Feb 01 20:54:32 2009 Subject: Re: trouble with Django and javascript If I use Onclick="submit();", how to add the

Re: trouble with Django and javascript

2009-02-01 Thread Will Matos
The problem is that the iframe is part of the main page. When the main page is refreshed, the iframe goes with it. Unless you have the form in a separate iframe the behavior will continue to be the same. W - Original Message - From: django-users@googlegroups.com To: Django users

Re: Autogenerate a Model on Save

2009-02-02 Thread Will Matos
Agreed. Your class is being saved in a view method. Upon successful saves create a new one. From: django-users@googlegroups.com To: django-users@googlegroups.com Sent: Mon Feb 02 15:07:48 2009 Subject: Re: Autogenerate a Model on Save generally you should k

Re: Autogenerate a Model on Save

2009-02-02 Thread Will Matos
, but eventually you'll feel more comfortable putting it there. nothing wrong with coding it in the view but OTOH you will get the same functionality if you use the form in your own view or in the admin. and if you create more views for different purposes, they can all use that form. On Mon

Re: How do I add a Custom ID Field that increments?

2009-02-02 Thread Will Hardy
voted against it, they didn't say why... I have no idea... it's just a simple perfect hash function and base converter, and it certainly does the job it was designed to do) Cheers, Will --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: Documentation for Download?

2009-02-11 Thread Will Hardy
Hi all, Should the release tarball maybe contain pre-build html and pdf documentation? That might be handy for those who don't want to install sphinx/latex etc. Cheers, Will --~--~-~--~~~---~--~~ You received this message because you are subscribed t

RE: Linked Comboboxes

2009-02-13 Thread Will Matos
/change views. This can be accomplished by using a Media inner class on your ModelAdmin: class ArticleAdmin(admin.ModelAdmin): class Media: css = { "all": ("my_styles.css",) } js = ("my_code.js&

Re: Does fixtures loading invoke custom save method?

2009-04-13 Thread Will Hardy
Yes it is correct: fixtures only load data into the database. If you want the .save() method to be called, you could use the the dumpscript management command I wrote in django_extensions: http://github.com/django-extensions/django-extensions/tree/master Cheers, Will

Re: Blocking multiple form submissions from the same IP address

2009-04-26 Thread Will Hardy
who your users are, people behind a firewall will have the same IP, so will people who switch browsers or close cookie-cleaning browsers to complete the survey at another time. Plus by doing it this way, you may be able to stop the more determined participants, who would try methods you wouldn't

Re: Overwrite send_mail

2009-05-10 Thread Will Hardy
The test runner does something similar if I remember correctly, have a look in django.test.utils and see if you can make something useful out of that. Cheers, Will --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: django decimal field query issue

2009-05-10 Thread Will Hardy
iling Decimal() test, but that wouldn't raise an ObjectDoesNot exist error. But using PointField in geodjango would probably avoid these issues anyway. Cheers, Will --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Need a binary database field for a Django application.

2009-05-11 Thread Will Kraytos
Hi there, My company's application needs to store binary data in the database. I need it to work at least across the two database systems we're currently using: Postgres (bytea) for production, SQLite3 (BLOB) for development. What are my options? The only relevant ticket[1] causes me to believe

Re: Need a binary database field for a Django application.

2009-05-11 Thread Will Kraytos
On May 11, 7:55 am, Karen Tracey wrote: > Have you investigated creating your own custom field: > > http://docs.djangoproject.com/en/dev/howto/custom-model-fields/ Thanks, I did look at that briefly. Was hoping there was some sort of built-in support that wouldn't require me to define my own cus

get_or_create not atomic?

2009-05-12 Thread Will McGugan
bject I was creating. Both requests detected that the object didn't exist and went on to create a new one. Could this be the case? And if so, should I not expect 'get_or_create' to be an atomic operation? Regards, Will McGugan -- Will McGugan http:/

RE: Need help for nested list in template

2009-05-19 Thread Will Matos
{%for item in final_list%} {%for val in item%} {{val.id}}, {{val.val}}, {{val.msg}} {%endfor%} {%endfor%} -Original Message- From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On Behalf Of laspal Sent: Tuesday, May 19, 2009 9:47 AM To: D

RE: Parsing the arguments in HTTP GET

2009-05-19 Thread Will Matos
You wouldn't match this using a url pattern. The rest of the query string will be in the request.GET list. So you can do the following: ui=request.GET['ui'] shva=request.GET['shva'] name=request.GET['name'] you'll probably want to check that it exists

RE: Need help for nested list in template

2009-05-19 Thread Will Matos
In this case a dictionary would not be necessary if he is indeed adding the model object itself: > user_status_list = UserStatus.objects.filter(id =20,time__gte > = somelist[val], time__lte = somelist[val+1)) > for item in user_status_list: >testing_list.append(item

RE: Dynamic ForeignKey using or how ?

2009-05-19 Thread Will Matos
field... or fave.post.casts.somecastfield... You may also want to look at proxy classes. Checkout http://docs.djangoproject.com/en/dev/topics/db/models/#multiple-inherita nce Will -Original Message- From: django-users@googlegroups.com [mailto:django-us...@googlegroups.co

RE: How do I override __unicode__ for User?

2009-05-20 Thread Will Matos
If you're using the most recent version of django you can use a Proxy Model: (I think this will work but I've never tried it) class Author(User): class Meta: proxy = True #Here you redefine the default behavior of #of the __unicode__ function def __unic

Re: Ignoring the word "The"

2009-06-03 Thread Will Hardy
rman titles, or it can do anything else your heart fancies). Then all you need to do is do your searching/sorting on the new field. Cheers, Will --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: FW: Select models based on m2m relationship.

2009-09-17 Thread Will Matos
Leon, Use ajax and json. Create a view method that returns a json list of actors and their ids, then populate your list with this. > > > -Original Message- > > From: django-users@googlegroups.com > > [mailto:django-us...@googlegroups.com] On Behalf Of Léon Dignòn > > Sent: Wednesday,

ecommerce design decision needed :-)

2009-11-03 Thread Will Hardy
#x27;s even possible). I hope this all makes sense, it's a bit tricky to describe a project and its design problem in a short email. Thanks to anyone who takes the time to understand what's going on here. I hope that the framework I end up with will be useful (it's pretty damn u

MySQLdb on Ubuntu 10.10

2010-10-12 Thread Will McGugan
Error loading MySQLdb module: libmysqlclient_r.so.15: cannot open shared object file: No such file or directory I realise this probably isn't specifically a Django issue, but it sounds like an issue that other Django devs would have experienced. Any help would be appreciated... Will -- You

a request for some brain picking

2010-01-01 Thread Will Dampier
An open call, This is Will Dampier, I've been an avid python and django programmer for the past two years or so. I've worked on a few in-house django projects and I've been looking for a project to "give-back" to the community. I've always worked on the "pro

Re: a request for some brain picking

2010-01-01 Thread Will Dampier
en I render the template. I hope this will become a resource for people to download templates that they can "tinker" into their own django programs. I've noticed that everytime I start a django project I get the views, forms, models, etc. programmed easily but I stare at a blank edi

Re: a request for some brain picking

2010-01-02 Thread Will Dampier
tes are super simple HTML templates (they're in the repository mentioned above). If a design implements then it will preferentially render the design's template over my own. I do like the idea of people uploading templates that over-ride admin templates. It would make it more "plug-abl

Re: a request for some brain picking

2010-01-02 Thread Will Dampier
e the templates? > > > Do you follow a wiki style where everybody can edit others? or follow a VCS > > and allow forking of templates? > > > I think it will be hard to find contributors since it will be hard to have a > > limited/standard template context that still r

Re: a request for some brain picking

2010-01-02 Thread Will Dampier
imple voting thingy on "Moderator" at this url: http://moderator.appspot.com/#15/e=125fbc&t=125fbd Please suggest and vote for the sort of apps you'd like to see included into a repository. On a side-note, I wonder if there's a way to create a "template- load

Re: a request for some brain picking

2010-01-02 Thread Will Dampier
e some template compatibility. > Unfortunately they are still sub 1.0 in their release but it looks > like they have settled down a bit in their base.html and css. > > On Jan 2, 10:16 am, Will Dampier wrote: > > > ... I do like the idea of having a handful of "standard dja

Re: a request for some brain picking

2010-01-02 Thread Will Dampier
e with some of my other projects). At this point I'm not above throwing out my crummy code if something better comes along ;). It certainly implements all of the "social features" that I was scratching my head about. All I really need to do is create a hook for rendering the arbitrar

Re: Can a ManyToManyField only shows certain records in an admin using edit_inline?

2007-08-01 Thread Will McCutchen
> Is there anyway that I can have the 'sandp' Field only > show choices that are tied to that collection? Try using the limit_choices_to argument to ManyToManyField: http://www.djangoproject.com/documentation/model-api/#many-to-many-relationships Hope th

Re: Problem using external CSS file with template

2007-08-21 Thread Will McCutchen
URL you are using to link to the CSS file in your template (ie, what replaces "XXX" in )? Will. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Configure Mod_Python fo Django on Apache server on Ubuntu

2008-04-06 Thread Will Boyce
Assuming your django project (mysite) is in /home/webmaster/ public_html/django/ then you'll want a trailing "/" in your PythonPath. Hope this helps. On Apr 5, 9:53 pm, HangingClowns <[EMAIL PROTECTED]> wrote: > I should have the latest versions available for Apache and mod_python > cause I just

Re: Navigation components

2008-06-03 Thread Will Boyce
I am also in a very similar situation to you, Will (nice name btw). I have a 2 level hierarchy in an ajax-y fashion.. It's easier to show than describe: http://beta.willboyce.com/blog (if it fails to load and you care enough, try again in a few mins - "beta" ;-)) In order to m

Re: django + google appengine?

2008-06-03 Thread Will Boyce
Google discuss this at length. http://code.google.com/p/google-app-engine-django/ would be a good starting place I guess. There may be more in the GAE Docs Regards, Will Boyce u: http://willboyce.com e: [EMAIL PROTECTED] On 3 Jun 2008, at 22:02, [EMAIL PROTECTED] wrote: > > i, once

Re: django + google appengine?

2008-06-03 Thread Will Boyce
oops, http://code.google.com/appengine/articles/django.html was the link I should've given you Regards, Will Boyce u: http://willboyce.com e: [EMAIL PROTECTED] On 3 Jun 2008, at 22:02, [EMAIL PROTECTED] wrote: > > i, once i have learned more about django, will build

Re: complaint about production db when running unit tests

2008-06-18 Thread Will Larson
Andrew, Running 'manage.py test' will create new tables, but not a new database. It can't create a new database, since it doesn't know what settings to use for that new database. However, your data stored in your database won't get overwritten since you will be

Re: Django on apache and mod_python.... and problems

2008-06-21 Thread Will Larson
ve __init__.py in both `/papastudio/` and `/ papastudio/blog/`. 3. Is the base import (depending on what the entry in your INSTALLED_APPS looks like, if its `papastudio.blog` then it would be `papastudio`) in the Python path for your mod_python deploy? You will probably need to explicitly add i

Re: Unable to upload PNG's

2008-06-23 Thread Will Larson
Julian, This is a PIL issue that appears to be biting a lot of people. Googling for "PIL PNG problem" will help, but this link might be a good starting point. Best, Will On Jun 23, 2008, at 6:02 PM, jurian wrote: > > I am currently getting an error when I attempt to up

Re: [Fwd: Custom field in JSON serializer]

2008-06-28 Thread Will Larson
jango.core.serializers files at the existing serializers for the details of how to implement your subclass. Best of luck, Will On Jun 28, 2008, at 7:03 PM, M.Ganesh wrote: > > people who asked after me got their answers, sometimes > within 15 minutes. I've not got any answers

Validations and error messages

2008-07-12 Thread Will Rocisky
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 Shell. I actually wa

Re: Path/Environment problem (may be Mac-specific)

2007-04-04 Thread Will McCutchen
> the Django list, but if anyone here can point me in a helpful direction, I > would be most grateful. It looks to me like BBEdit must be using a different PYTHONPATH than the standard Python shell. Which, I think, would make this a question for the BBEdit list. Sorry this isn't a rea

Re: def __str__(self) error in tutorial part 1

2007-10-03 Thread Will McCutchen
TextMate to show correct indentation? If you highlight the code that you want unindented, you can use Command-[ to decrease the indentation by one level. Hope this helps, Will. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: Request in a template

2007-11-21 Thread Will Larson
> I have an parameter in my querystring which i would like to access in > a template, fx: > > --- > > --- > http://www.b-list.org/weblog/2006/jun/14/django-tips-template-context- processors/ Shows you how to do just that. But, I would recommend handling that a bit different. Specifically in

Re: currently online users?

2007-01-23 Thread Will McCutchen
n to the > django_session table that was a last_modified field. I would add option #5: Write a custom middleware component to update a last_accessed attribute for logged in users on every request. http://www.djangobook.com/en/beta/chapter16/ Will. --~--~-~--~~

Re: Foreign key filter question

2014-01-29 Thread Will A
Try target_name_name__icontains='foo' or update the foreign key definition. On Wed, Jan 29, 2014 at 5:08 PM, Larry Martell wrote: > I have a table that has these 2 foreign keys: > > target_name = models.ForeignKey(Target) > wafer = models.ForeignKey(Wafer) > > Both Target and Wafer are

Templates and URL Mappings

2018-04-02 Thread Will Burchell
Hi all, I'm having some trouble understanding fairly basic URL mappings and how they rout through to templates. I have an app "stock" which is registered in my base admin.py. I have three classes in my app, stock\models.py listed below: from django.db import models class Supplier(models.M

Re: Templates and URL Mappings

2018-04-03 Thread Will Burchell
Daniel, thank you so much! I had been eyeing my regex with suspicion by was looking at the wrong pattern. Many thanks again, all appeas to be working fine now :) On Monday, 2 April 2018 12:27:56 UTC+1, Daniel Roseman wrote: > > On Monday, 2 April 2018 12:00:31 UTC+1, Will Burchell

Upload multiple files at once

2017-02-11 Thread Will Treston
Hey, im trying to upload multiple files in one go and I just cant get it to work. Any help would be appreciated. Thanks, -Will -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emai

NoReverseMatch when trying to use get_absolute_url with custom template tag

2017-03-29 Thread Will Holmes
I am making a calendar app which has a custom template tag that takes the python HTML template function and overlays objects from the Events model on the correct days. I am trying to get the displayed objects to have a link directly to an object detail/edit view and am trying to use get_absol

Re: NoReverseMatch when trying to use get_absolute_url with custom template tag

2017-03-30 Thread Will Holmes
Oh yeah i see. Brilliant sorted it! Thanks for your help Melvyn. -- 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 p

Re: safe perfect and reliable app for verification email

2017-04-16 Thread Willian Will
Hey, you can user javasript for that, thus You dont need use ajax or anything for retrieve confirmation about email is correct or no , but you need confirm about the email already exists in database ? sábado, 15 de Abril de 2017 às 09:22:21 UTC-3, shahab emami escreveu: > > hello > I want to ve

Re: Error:Microsoft visual c++ 14.0 is required

2017-04-16 Thread Willian Will
hey , download and install that https://www.microsoft.com/en-us/download/details.aspx?id=48145 domingo, 16 de Abril de 2017 às 09:35:06 UTC-3, Ronnie escreveu: > > I have installed Microsoft visual c++ 14.0 then also it is showing error > as Microsoft visual c++ 14.0 is required. Please help me.

Using Django with groupby

2017-04-20 Thread Will Holmes
Hi guys, I am using django to develop a calendar web app where users can create events that are then displayed on a month by month view. I have written a custom template tag that takes Python's HTMLCalendar formatmonth function and overlays events that are on that day. It is currently se

Re: Using Django with groupby

2017-04-21 Thread Will Holmes
return_dict: return_dict[event.start_date.day].append(event) else: return_dict[event.start_date.day] = [event] return return_dict On Thursday, April 20, 2017 at 4:35:36 PM UTC+1, Will Holmes wrote: > > Hi guys, > > > I

NoReverseMatch

2017-04-28 Thread Will Holmes
ete() return redirect("cal:home") Also, if anyone can tell me a good way to get my delete button I'd be very grateful. Cheers, Will -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: NoReverseMatch

2017-04-28 Thread Will Holmes
x27;^events/(\d+)/', views.viewevent, name='viewevent'), url(r'^(?P\d+)/(?P\d+)$', views.home, name='another-month'), url(r'^events/(\d+)/delete_event$', views.delete_event, name='delete_event'), ] urls: from django.conf.urls import

Effecient Text Search

2020-03-14 Thread Will Meyers
Hi all, Just a quick question. I'm working on a general search function for my application and just wanted your opinions before I do any sort of benchmarking. Right now I have a PostgreSQL database with a table (model) which includes a title column and summary column (both charfields). Would

Re: how to calculate appreciation and depreciation with the use of forms

2020-03-21 Thread Will Meyers
results can easily be retrieved. I'd start with this guide if you're new: First Steps with Django and Celery <https://docs.celeryproject.org/en/latest/django/first-steps-with-django.html> On Saturday, March 21, 2020 at 2:32:36 PM UTC-4, Ernest Thuku wrote: > > Hello guys am

Re: Custom login in django

2020-03-30 Thread Will Meyers
he form, because the token is rotated after a login. > > You're seeing the help section of this page because you have DEBUG = True > in your Django settings file. Change that to False, and only the initial > error message will be displayed. > > You can customize this page using

Custom Permissions of Django Materialized View

2020-06-10 Thread Will Meyers
normalized model, but since switching to materialized view (the denormalized model), I'm unsure how to go about implementing something like this. Any help appreciated. Best, Will -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

Limiting access to data through user permissions?

2020-07-10 Thread Will Meyers
Just need some help getting over a wall I've hit. I have a web application that whenever a user signs up, is assigned a License. This License has CustomPermissions attached to it telling what values of a field within a materialized view they have access to. I have an API that needs to filter

Re: Handling cookies that contain illegal values

2016-02-05 Thread Will Harris
, the cookies would already have been lost. Will On Friday, February 5, 2016 at 12:31:30 AM UTC+1, Daniel Chimeno wrote: > > Hello, > >> >> I have resolved this in my instance as follows in django/http/cookie.py: >> >> def parse_cookie(cookie): >> cooki

  1   2   >