Re: Freelance Django and Python work

2023-06-29 Thread M. Guy Sylvestre
Je suis intéressé . Le mar. 13 juin 2023, 11:30, אורי a écrit : > Hi, > > I'm looking for a programmer to hire as a freelancer for Django and Python > work. > > - Experience with Python and Django > - Experience with open source > - Committed to the Django repository on GitHub - an advantage >

Re: Freelance Django and Python work

2023-06-18 Thread M. Guy Sylvestre
I'm interested. I have two years experience with pyhton and Django. Solid knowledge of HTML5, CSS3 AND JAVASCRIPT. Le mar. 13 juin 2023, 11:30, אורי a écrit : > Hi, > > I'm looking for a programmer to hire as a freelancer for Django and Python > work. > > - Experience with Python and Django > -

Re: Django Session KeyError

2020-02-26 Thread Guy NANA
gt; One more thing check if cookies are not disabled for localhost > Also , are you logged in ? Try after logging in as superuser. > > Cheers, > Naveen Arora > > On Wednesday, 26 February 2020 14:26:22 UTC+5:30, Guy NANA wrote: >> >> Hi! Please find bellow the output

Re: Django Session KeyError

2020-02-26 Thread Guy NANA
Hi! Please find bellow the outputs. When I was using sessions stored in cache (specially in Memcached) all things were working good until I wanted to upload a data set with larger volume of data : it wasn't be possible to put them in cache. Training dataset uploaded : Coffee training dataset

Re: Django Session KeyError

2020-02-26 Thread Guy NANA
_json(request.session['ts_dataset_copy'], orient='values') predictions = cv_classify(df, kfolds, dissimilarity_func, windows_length, noisy_law, mu, std) return JsonResponse(predictions, safe=False) On Tuesday, 25 February 2020 03:47:25 UTC+5:30, Guy NANA wrote: I hav

Re: Django Session KeyError

2020-02-26 Thread Guy NANA
session['ts_dataset_copy']) > df = pd.read_json(request.session['ts_dataset_copy'], orient= > 'values') > predictions = cv_classify(df, kfolds, dissimilarity_func, > windows_length, noisy_law, mu, std) > return JsonResponse(predictions, safe=False) > > On T

Re: Django Session KeyError

2020-02-25 Thread Guy NANA
février 2020 02:23:59 UTC+1, juanblo a écrit : > > Hi, > > In your Django application, session middleware is enabled ? [1] > > [1] https://docs.djangoproject.com/en/3.0/topics/http/sessions/ > > On Tue, Feb 25, 2020 at 8:16 AM Guy NANA > wrote: > >> I don't unde

Re: Django Session KeyError

2020-02-25 Thread Guy NANA
:53 UTC+1, Pankaj Sharma a écrit : > Make sure your line request.session['ts_dataset_copy'], print anything > above it, also make sure you are using POST method in forms (method = > "post") > > On Tuesday, February 25, 2020 at 3:47:25 AM UTC+5:30, Guy NANA wrote: >>

Django Session KeyError

2020-02-24 Thread Guy NANA
I have an angular frontend app which send file to django backend which data is setting in django session. After I send a httprequest to django backend to make ML tratements on that data and get the results. But I've a 500 sever error: keyerror 'ts_dataset_copy': KeyError: 'ts_dataset_copy'

Cannot list the content of a subdirectory of static in my django projet

2020-01-27 Thread Guy NANA
I have in my project a directory named uts in static/ folder that I want to list the content and send it in HttpResponse but the glob.glob() function doesn't work. Here you have the structure of my project. The utility function *list_dir_content* which call glob.glob is located in the utils

Re: [URGENT] HOW TO DISPLAY IN HTML A PANDAS PLOTTING IN A DJANGO APPLICATION

2019-12-17 Thread Guy NANA
dataframe() method, > # After that convert to JSON data via to_json() method > # Final render on context in any template of html file > > On Mon, Dec 16, 2019, 20:55 Guy NANA > > wrote: > >> Thanks for your answers >> >> -- >> You received this message because y

[URGENT] HOW TO DISPLAY IN HTML A PANDAS PLOTTING IN A DJANGO APPLICATION

2019-12-16 Thread Guy NANA
Thanks for your answers -- 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 view this discussion on the web visit

Re: [Urgent for my intership] How to send matplotlib generated figures to django web app?

2019-12-14 Thread Guy NANA
gt; https://django.cowhite.com/blog/creating-charts-and-output-them-as-images-to-the-browser-in-django-using-python-matplotlib-library/ > > On Fri, Dec 13, 2019 at 4:50 PM Guy NANA > wrote: > >> Hello, >> I want to show in my web app figures generated with matplotlib.pypl

[Urgent for my intership] How to send matplotlib generated figures to django web app?

2019-12-13 Thread Guy NANA
Hello, I want to show in my web app figures generated with matplotlib.pyplot but I don't find how to do it. Someone can explain me how it works? Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Recommended monitoring tools for Django

2015-02-22 Thread Guy Tamir
Hi all, I'm looking for recommended tools to monitor my Django server. I'm deploying to Heroku. Not sure what I should expect from the tool, the only thing I really need (the reason I started searching for a tool) is a way to set an API endpoint on my server and have the monitor check to see

Re: Django-compressor manifest.json problem on Heroku

2014-12-16 Thread Guy Tamir
: > > Hi Guy, > > I haven't used django_compressor, but it might help to configure > COMPRESS_OFFLINE_MANIFEST. > > Collin > > On Saturday, December 13, 2014 11:54:27 AM UTC-5, Guy Tamir wrote: > > I haven't configured django caching, how do I do that? > > Also

Re: Django-compressor manifest.json problem on Heroku

2014-12-13 Thread Guy Tamir
configured? If not, then caching will only be > per-process and each process will need to fetch the information. (I'm > assuming CachedS3BotoStorage uses django's cache.) > > Collin > > On Wednesday, December 10, 2014 11:05:35 AM UTC-5, Guy Tamir wrote: > > Hey all, &g

Django-compressor manifest.json problem on Heroku

2014-12-10 Thread Guy Tamir
/test-dollarsocial/compressed/ manifest.json 2014-12-10T16:01:14.100695+00:00 app[web.1]: DEBUG:boto:Signature: 2014-12-10T16:01:14.100697+00:00 app[web.1]: AWS :XX What I expected to happen is for heroku to cache the manifest file and not to fetch it each request.. Any ideas wh

Re: Migrating to a custom User model with South

2014-09-01 Thread Guy Tamir
s.py > wsgi.py > myappname/ > model.py > forms.py > views.py > urls.py > > 2014-09-01 13:05 GMT+01:00 Guy Tamir <guyt...@gmail.com >: > >> myappname(dir): >> -settings.py >> - admin.py >> - forms.py >> - models.

Re: Migrating to a custom User model with South

2014-09-01 Thread Guy Tamir
myappname(dir): -settings.py - admin.py - forms.py - models.py - urls.py - views.py - wsgi.py On Monday, September 1, 2014 3:02:42 PM UTC+3, Helton Alves wrote: > > can you put here your full directory? > > > 2014-09-01 12:53 GMT+01:00 Guy Tamir <guyt...@gmail.com >: &g

Re: Migrating to a custom User model with South

2014-09-01 Thread Guy Tamir
> settings.py > apps/ > myappname/ > > if in another directory, on INSTALLED_APPS have to are this mode > "directory.myappname". > > > 2014-09-01 12:12 GMT+01:00 Guy Tamir <guyt...@gmail.com >: > >> Yes its there. >> Not sure if this ca

Re: Migrating to a custom User model with South

2014-09-01 Thread Guy Tamir
me" in INSTALLED_APPS on settings ? > > > 2014-09-01 8:17 GMT+01:00 Guy Tamir <guyt...@gmail.com >: > >> Hey all, >> >> I'm trying to create a custom User model on an existing project (Django >> 1.5.5). >> I followed this tutorial >>

Migrating to a custom User model with South

2014-09-01 Thread Guy Tamir
Hey all, I'm trying to create a custom User model on an existing project (Django 1.5.5). I followed this tutorial , I created the new model, ran a "schemamigration" once, which created the tables in the DB, also

Re: Push like notifications app

2014-08-19 Thread Guy Bowden
admit to glossing over the 'django-notifications' app having previously used 'django-notification' - which is completely different! Guy On Sunday, 17 August 2014 16:57:04 UTC+2, Cal Leeming [iops.io] wrote: > > That was strange, my email decided to send as I was typing the rest of my > rep

Re: @permission_required not working

2014-08-18 Thread guy
Yes, it worked :) Thanks! On Monday, August 18, 2014 2:46:05 PM UTC+3, Collin Anderson wrote: > > Try subclassing ModelBackend. > > from django.contrib.auth.backends import ModelBackend > > class CaseInsensitiveModelBackend(ModelBackend): > # etc > -- You received this message because

Re: @permission_required not working

2014-08-18 Thread guy
I double checked. the user is active. Not using a custom user backend but in the "AUTHENTICATION_BACKENDS" I have this set: AUTHENTICATION_BACKENDS = ( 'bla.models.CaseInsensitiveModelBackend', ) class CaseInsensitiveModelBackend(object): def authenticate(self, username=None,

@permission_required not working

2014-08-18 Thread guy
Hey all, I'm trying to use Django's permission functionalities but having some trouble. I've created a custom permission in one of my models with this code: class Meta: permissions = ( ("actions_for_both_user_type", "General permission for both user types"),

Push like notifications app

2014-08-17 Thread Guy Bowden
to display, and then display them, marking them as read when they're displayed. There would be a simple way to dismiss a message and never see it again. Anything like that exist? Seems fairly simple to create (don't they all!) if not. Cheers Guy -- You received this message because you

Re: Registration extend nightmare

2014-06-02 Thread Matt Guy
Fen%2F1.6%2Ftopics%2Fdb%2Ftransactions%2F=D=1=AFQjCNG_icrJUvuVmnfeb_nLcMJIbDIm0g> > > K > > > On Friday, May 30, 2014 7:26:04 AM UTC-7, Matt Guy wrote: >> >> I am trying to add an extra user profile registration field using >> registration. Should be so simple but this is bringing me to the e

Registration extend nightmare

2014-05-30 Thread Matt Guy
I am trying to add an extra user profile registration field using registration. Should be so simple but this is bringing me to the edge. Here's my stackoverflow question with bounty:

Re: Different URLCONF for different domains

2014-03-12 Thread Guy Tamir
Hey, I'm aware of what your saying but I'd I like to reconfigure in a way similar to django-subdomains only instead of specifying the sub domain I'll specify the domain.. Is there a good hack you can think of that can help me in this case?

Different URLCONF for different domains

2014-03-12 Thread Guy Tamir
/a/ by entering secondary.com/ (Both domains have a CNAME record pointing to the same server) Is there a way to reconfigure the URLCONF for specific domains so that it will automatically go to a different urls file? Best, Guy -- You received this message because you are subscribed to the Google Groups

Uploading file and serving them with CDN - Best practices

2013-08-06 Thread Guy Tamir
if this matters) I've never hacked something like this so i'm not sure whats the common practice and where to start... Best regards, Guy -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

Re: django workaround for multiple primary keys or sqlalchemy

2013-07-29 Thread Guy Tamir
e issues if you try to > use any 3rd party Django apps as well. > > On Monday, July 29, 2013 11:39:20 AM UTC-4, Guy Tamir wrote: >> >> Hi all, >> >> i'm fairly new to Django and i have a question regarding the best >> practice for a situation i've got. >&g

django workaround for multiple primary keys or sqlalchemy

2013-07-29 Thread Guy Tamir
Hi all, i'm fairly new to Django and i have a question regarding the best practice for a situation i've got. I'm working on a new project and after designing my ERD I know i need a few tables to have multiple primary keys and one table with triple primary keys. after reading about the subject

Django and Heroku Static Image Files Disappearing

2013-01-10 Thread That guy
Hi there :) On heroku, do static images expire after some point and automatically get deleted? My situation is that I retrieve images from my PostgreSQL database through a model's ImageField by setting its upload_to equal to static/images. Then, I access the images through

Re: Django jQuery AJAX Self Replacing Script

2012-12-30 Thread That guy
EDITs made to orginal but same issue. On Sunday, December 30, 2012 5:16:17 PM UTC-8, That guy wrote: > >Hello, > > > I've been having trouble implementing a self-replacing script. I admit > that I am terribly confused. > > I am trying to implement two button

Django jQuery AJAX Self Replacing Script

2012-12-30 Thread That guy
Hello, I've been having trouble implementing a self-replacing script. I admit that I am terribly confused. I am trying to implement two buttons such that if you click on one, a POST request is sent to the server; the server validates that you indeed went to this webpage and sends back

Getting Access to Object in Admin Panel

2012-12-29 Thread That guy
After overriding list_display, I noticed that I lost access to being able to directly click on the object to view all its fields in the control panel. Hence, I needed to resort to defining return_unicode. I know that theres definitely a better way to approach it, so whats the 'Django' way of

Trouble Accessing An Image through ImageField

2012-12-23 Thread That guy
Hi there, I'm trying to create a photo gallery by storing photos in a gallery database and pulling them out when appropriate. However, I ran into the problem of how to publicly expose the pictures in urls. In my template, I return a the url of the photo which turns out to be

Design patterns with users / groups

2012-11-12 Thread Guy Bowden
that there would obviously be a lot more groups created, but permissions would only be assigned to groups, not users, so easier to manage..? Cheers Guy -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web v

Re: Intermittent mysql connection errors

2012-10-26 Thread Guy
After more testing it appears that this is an O/S layer issue and not specifically a django issue. On Thursday, October 25, 2012 3:07:16 PM UTC-7, Guy wrote: > > I'm experiencing an annoying problem with a couple of django apps. Both > apps are games built on Django that make regu

Intermittent mysql connection errors

2012-10-25 Thread Guy
etely separate infrastructure) that has the same issue. I don't believe there's a network issue but I wouldn't rule it out, but I'm curious if anyone else on here has seen this behaviour before, and if so, I'd like to know how you fixed it. Any help would be appreciated. Thanks, Guy --

Re: static files

2012-10-12 Thread acellam guy
Make sure that all your static settings are okay on your app. Since you mentioned that you are using apache; install *mod_wsgi* be sure to add some stuff to your httpd.conf file eg; #added by guy LoadModule wsgi_module modules/mod_wsgi.so SSLRandomSeed startup builtin SSLRandomSeed

Re: Passing variables from a context processor to a template

2012-01-06 Thread Guy Nesher
Thanks, Works perfectly now (and yeah I'm fairly new to Python/Django) On Jan 5, 5:44 pm, Rainy <andrei@gmail.com> wrote: > On Jan 5, 12:38 pm, Rainy <andrei@gmail.com> wrote: > > > > > > > > > > > On Jan 5, 12:35 pm, Guy Nesher <nesher

Re: Passing variables from a context processor to a template

2012-01-05 Thread Guy Nesher
t; 1) make sure the context processor is installed in your settings file. > 2) context processors should return dicts.  Try: > > def swiss_context_processors(request): >     added_context = { 'mytest': 'aaa', } >     return added_context > > On Jan 5, 12:03 pm, Guy Nesher <nesher

Passing variables from a context processor to a template

2012-01-05 Thread Guy Nesher
Hi, I've created a simple context processor which simply returns a variable, however I'm unable to retrieve it from my template. The context processor is quite simple : def swiss_context_processors(request): mytest = "aaa" return mytest and I am calling the context processor in my view

Re: Piston XML Attributes

2011-10-23 Thread Guy Nesher
Thanks On Oct 23, 9:17 pm, Masklinn <maskl...@masklinn.net> wrote: > On 2011-10-23, at 21:20 , Guy Nesher wrote:> Hi, > > > I've started playing with Piston several days ago but I'm unable to > > create XML attributes. > > Do I need to create a special emitter fo

Piston XML Attributes

2011-10-23 Thread Guy Nesher
Hi, I've started playing with Piston several days ago but I'm unable to create XML attributes. Do I need to create a special emitter for that ? Guy -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Error handeling with Try

2011-10-19 Thread Guy Nesher
Thanks On Oct 19, 3:57 pm, "J. Cliff Dyer" <j...@sdf.lonestar.org> wrote: > On 10/19/2011 10:49 AM, Guy Nesher wrote: > > > > > > > > > > > I have an odd problem tracking errors in a for loop > > I assign a loop counter to each error and

Error handeling with Try

2011-10-19 Thread Guy Nesher
I have an odd problem tracking errors in a for loop I assign a loop counter to each error and print them at the end of the loop, but all the errors are numbered to the last iteration. The code goes something like this : error = [0,[]] counter = 0 for row in reader: counter +=1 try:

Re: Foreign key problem

2011-10-14 Thread Guy Nesher
nm, solved On Oct 14, 1:54 pm, Guy Nesher <nesher@gmail.com> wrote: > Hi DR, > > Thanks, I've just started developing in Python/Django so I do > apologize for the bad naming convention (I'll fix this once everything > works, don't want to add additional errors before I s

Re: Foreign key problem

2011-10-14 Thread Guy Nesher
011 12:44:45 UTC+1, Guy Nesher wrote: > > > Hi, > > > I'm trying to populate a table with 2 foreign keys using a csv file > > and keep getting the following error : > > Cannot assign "238": "PrizetoRestaurant.RestauranttId" must be a > > &q

Foreign key problem

2011-10-14 Thread Guy Nesher
Hi, I'm trying to populate a table with 2 foreign keys using a csv file and keep getting the following error : Cannot assign "238": "PrizetoRestaurant.RestauranttId" must be a "Restaurant" instance. I tried to manually define the primary keys in those tables, and I'm making sure I int() the

Re: XMPP based apps

2010-10-19 Thread acellam guy
thats good work eric On Tue, Oct 19, 2010 at 2:32 AM, Eric Chamberlain wrote: > We've done django based xmpp services and created middleware to enable > django to manage and authenticate ejabberd users. > > On Oct 18, 2010, at 6:10 AM, Venkatraman S wrote: > > Well, I havent

Re: NoReverseMatch error when attempting to spawn an intermediate window from an admin action

2010-08-19 Thread Guy
I realize that I must have hit reply to author earlier. But thank you again (and more publicly) for the help. This definitely gets me started. Guy On Aug 19, 5:25 am, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Aug 19, 9:16 am, Guy <guyea...@gmail.com> wrote: > &

NoReverseMatch error when attempting to spawn an intermediate window from an admin action

2010-08-19 Thread Guy
. Many thanks, Guy #myproject/app/admin.py class ItemAdmin(admin.ModelAdmin): fieldsets = ( #... ) #set up management command def change_status(self, request, queryset): """call intermediary window to present admin with option to update the status for a

Re: Can a django form render a javascript (interactive) calendar?

2009-12-16 Thread Guy
as some other nice widgets. Good luck. Guy On Dec 16, 5:24 am, Jirka Vejrazka <jirka.vejra...@gmail.com> wrote: > >> > Is it possible for django to render a javascript calendar?  How so? > >> > If this is possible, a code snippet would be very helpful. > >  Django

Re: question about changing model/table names and attributes ... (still learnin')

2009-12-10 Thread Guy
Thanks, for the advice. I am checking it out.To clarify, my table names have changed when I realize styling erros have been incorporated, (ie. capitalization errors, etc). I wouldn't expect the table names to change in the operational db. Thanks again. Guy On Dec 10, 12:32 pm, Shawn

question about changing model/table names and attributes ... (still learnin')

2009-12-10 Thread Guy
be careful when editing tables that contain valuable data. Can someone point me to a good write-up of this process, or good software? Go easy on me, I spent my education in biology and am just getting started trying to understand silicon rather than carbon based systems. Thanks. Guy -- Yo

Re: New to django, python, etc. - ForeignKey question

2009-12-06 Thread Guy
when someone else solves your problem (*smacking forehead with hand*). Very appreciated, thanks again. Guy On Dec 5, 9:56 pm, Sam Lai <samuel@gmail.com> wrote: > The error is occurring here as you have mentioned - > > rolestartdate = models.Da

New to django, python, etc. - ForeignKey question

2009-12-05 Thread Guy
I am using the code shown below. The part causing the problem is the Role class which describes the role a person might have on a project. As part of that role, I would have an attribute that records the start and end date of the person's involvement. The problem seems to be coming when I make

Re: modwsgi on suburl

2009-11-25 Thread Some Guy
my bad :). didn't really get his gist. just switched to wsgi myself. On Nov 25, 11:00 pm, Graham Dumpleton <graham.dumple...@gmail.com> wrote: > On Nov 26, 5:04 pm, Some Guy <djul...@gmail.com> wrote: > > > WSGIScriptAlias /test > > > should be > > >  WS

Re: modelformset and pagination?

2009-11-25 Thread Some Guy
well, I've looked into it more, and it seems that the max_num argument to the modelformset_factory constructor is the best way to go. If it works i'll post it here for those who might find this thread from google. On Nov 25, 8:46 pm, Some Guy <djul...@gmail.com> wrote: > I'm having

Re: modwsgi on suburl

2009-11-25 Thread Some Guy
WSGIScriptAlias /test should be WSGIScriptAlias / not really sure what you mean by suburl... On Nov 25, 9:47 pm, Amit Sethi wrote: > Hi , can somebody tell me how i should configure mod_wsgi on a suburl I want > to set a django project on > > domain.com/test/ > >

modelformset and pagination?

2009-11-25 Thread Some Guy
I'm having an issue trying to create pagination with a modelformset. so far I have... SubFormSet = modelformset_factory(Submission, can_delete=True, extra=0, form=PricingForm) ... objs = Submission.objects.all() formset = SubFormSet(queryset=objs) <-overriding the basic queryset

Re: postgresql errors (works in sqlite)

2009-11-23 Thread Some Guy
Or you could downgrade postgresql if you like.  But eventually you're > likely to want some new feature, so fixing your column seems to me > the right thing. > > Bill > > > > On Mon, Nov 23, 2009 at 1:17 PM, Some Guy <djul...@gmail.com> wrote: > > Hi, > > I was

postgresql errors (works in sqlite)

2009-11-23 Thread Some Guy
Hi, I was switching from sqlite3 to postgres, the data was imported ok. But now certain view queries are failing. i.e. counts[i] = Submission.objects.all().filter(status__exact=i).count() fails with ... File "/usr/lib/python2.5/site-packages/django/db/models/sql/query.py", line 2369, in

generator function for repetitive model fields?

2009-11-16 Thread Some Guy
Hi, Is there any functionality, or possibility, to generate many fields in a model file that are all identical and follow an easy (repetitive) naming convention? i.e. locations = (loc1, loc2, lo3) places = (place2, place2) for l in locations: for p in places: l + p + _has_been_checked =

where to place import statements

2009-09-24 Thread Some Guy
Hi group, I was wondering about how to structure my import statements and it's impact, if any, on the memory footprint of mod_python. I'm importing some modules that i'm sure are huge in memory for certain views. My question is: does it make any difference whether I put the import statement at

project with 2 apps. mod_python cannot find view functions in one app

2009-09-02 Thread Some Guy
Hi, I have a project that's working fine (apache2/mod_python) I wrote a new app to add to it, which works fine with dev server. In my root urls.py I added the urls.py from the new app with an include ( (r'^inventory/', include('stuff.retail.urls') ), ('retail' being the new app) I also added

Re: problem: TemplateDoesNotExist at /admin/ (linux)

2009-07-26 Thread Some Guy
If you're not using the development server (python manage.py runserver), make sure that you have set a template_dir in settings.py and make sure the webserver can read it... On Jul 26, 3:15 pm, LuXo Jarufe wrote: > Hi, I want to use the admin but I have this problem, I

Re: run django on multicore machine

2009-07-23 Thread Some Guy
Not sure about my answer but I think it matters more that the webserver you are using can take advantage of multicore (i.e. mod_python instances running in their own thread.) On Jul 23, 10:26 am, ihome wrote: > Has django been designed to take advantage of multicore

Re: Sqlite3 ok from deployment?

2009-07-22 Thread Some Guy
ion either, try cherrypy wsgi server). But > if you have enough resources and the only real reason for using sqlite > is not wanting to go through db server installation you might want to > reconsider. > > > > On Thu, Jul 23, 2009 at 2:02 AM, Some Guy<djul...@gmail.com> wrote: >

Sqlite3 ok from deployment?

2009-07-22 Thread Some Guy
Having finished a small app, i'm wondering if it's ok to use sqlite3 in a deployment with mod_python and apache. I've read that sqlite is not meant for multi-user access where the actual db file is shared, but with several mod_pythons running will it be an issue if they are all having access to

Re: OneToOneFields: How do you use them?

2009-07-22 Thread Some Guy
Just a guess, but maybe... >>> p = mymodels.Person() >>> p.name="John Smith" >>> f = mymodels.Friend() >>> f.name = "John Q. Smith" add this here so it gets an id?? f.save() >>> p.friend = f >>> p.save() On Jul 22, 12:15 pm, Dudley Fox wrote: > I have a simple test

Re: Use an arbitrary changelist

2009-07-22 Thread Some Guy
You want this... http://blog.dougalmatthews.com/2008/10/filter-the-django-modeladmin-set/ Be aware though, of a bug* in manage.py that, if you dumpdata with only your app specified, you will get entries for the proxy model as well. The proxy model entries will screw up your next loaddata, so I

Re: Might have found a bug with manage.py

2009-07-21 Thread Some Guy
Nevermind, I should have checked trac first instead of searching this group found http://code.djangoproject.com/ticket/11429 and http://code.djangoproject.com/ticket/11428 I guess I'll have to be explicit with which models to dump On Jul 21, 1:23 pm, Some Guy <djul...@gmail.com> wrote:

Re: Might have found a bug with manage.py

2009-07-21 Thread Some Guy
also... Django version 1.1 beta 1 SVN-11082 On Jul 21, 1:22 pm, Some Guy <djul...@gmail.com> wrote: > I have a model with a proxy subclass.  dumpdata saves an entry for > each of the superclass' and an additional entry for the proxy class > (with no fields) as well. > >

Might have found a bug with manage.py

2009-07-21 Thread Some Guy
I have a model with a proxy subclass. dumpdata saves an entry for each of the superclass' and an additional entry for the proxy class (with no fields) as well. loaddata then chokes on the superclasses constraints. Or is it supposed to do this? i.e. (psuedocode..) assume app = 'bar' class

Re: Change default queryset in admin for a model

2009-07-19 Thread Some Guy
Thanks, I am using 1.1 beta and proxy looks like it was meant to do what I want, without a kludge. will give it a shoot On Jul 19, 3:36 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Sun, Jul 19, 2009 at 5:07 PM, Some Guy<djul...@gmail.com> wrote: > >

Re: Change default queryset in admin for a model

2009-07-19 Thread Some Guy
set for the model admin's list > page, then yes, you can override the default queryset method defined > in ModelAdmin just as the link describes. > > jeff > > On Jul 19, 12:40 pm, Some Guy <djul...@gmail.com> wrote: > > > > > hrmm, I found this > > too..http://

Re: Change default queryset in admin for a model

2009-07-19 Thread Some Guy
is appreciated :-) On Jul 19, 12:17 pm, Some Guy <djul...@gmail.com> wrote: > I was wondering if it's possible to have an admin page always show a > filtered (or other non-default) queryset? > > i.e. I would like the default admin page to show a queryset without > any rows that have a par

Re: Change default queryset in admin for a model

2009-07-19 Thread Some Guy
In an attempt to answer my own question... Would a custom manager be able to do this? I've never done one, but could one override the all() method to filter the results that the admin receives? On Jul 19, 12:17 pm, Some Guy <djul...@gmail.com> wrote: > I was wondering if it's possibl

Change default queryset in admin for a model

2009-07-19 Thread Some Guy
I was wondering if it's possible to have an admin page always show a filtered (or other non-default) queryset? i.e. I would like the default admin page to show a queryset without any rows that have a particular boolean field set to false. I've looked in the admin views.py, but haven't found

Re: Dict objects are unhashable errors

2009-07-16 Thread Some Guy
eva...@gmail.com> wrote: > On Fri, Jul 17, 2009 at 1:07 AM, Some Guy <djul...@gmail.com> wrote: > > > Found out what was causing this error behavior. > > > this line was in my urls.py.. commenting it out fixed everything.  I > > just can't see what's wrong w

Re: Dict objects are unhashable errors

2009-07-16 Thread Some Guy
Found out what was causing this error behavior. this line was in my urls.py.. commenting it out fixed everything. I just can't see what's wrong with it :-) #(r'^diamond/(?P\d+)/$', 'object_detail', info_dict, {'template': 'diamond_detail.html'}), On Jul 15, 12:14 pm, Some Guy <d

Dict objects are unhashable errors (FOUND THE BUG anyone know why?)

2009-07-16 Thread Some Guy
Hi Group, I found a bug that was causing my issue (ref: http://groups.google.com/group/django-users/browse_thread/thread/130f36db5e95bd81) In my urls.py I have a line ... (r'^diamond/(?P\d+)/$', 'object_detail', info_dict, {'template': 'diamond_detail.html'}), If I comment it out it,

urlize and links in new tabs/windows

2009-07-16 Thread Fish-Guy
Hi, Is there an easy way of making links parsed with urlize open in new tabs/windows? I see in utils/html.py there is call for a NoFollow to be inserted, was not sure if there was an easy way to add this with a function call, or if I had to modify the code there a little to make it work. Thanks.

Re: Dict objects are unhashable errors

2009-07-15 Thread Some Guy
I should add my django versions too dev: 1.1 beta 1 SVN-11082 Deploy: 1.1 beta 1 On Jul 15, 12:12 pm, Some Guy <djul...@gmail.com> wrote: > Hi, > I seem to have a problem where various contrib elements are throwing a > template error "dict objects are unhashable"

Dict objects are unhashable errors

2009-07-15 Thread Some Guy
Hi, I seem to have a problem where various contrib elements are throwing a template error "dict objects are unhashable" I'm seeing it in admin, comments, etc. Both on my dev setup and deployed. The line of code always seems to be File "/Library/Python/2.5/site-

Re: dict objects are unhashable in admin... in this a bug?

2009-07-14 Thread Some Guy
but I need the ability to edit users :-) Right now I'm using 1.1 beta 1 django, apache2, and sqlite3 I saw something similar in trac but it was closed with "works for me" On Jul 14, 12:41 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Tue, Jul 14, 2009 at 2:28 PM, So

dict objects are unhashable in admin... in this a bug?

2009-07-14 Thread Some Guy
Hi Group, I'm using svn version of django and SQLite3 on linux. I set up a basic admin user and when I try to access the edit page I get the "TemplateSyntaxError at /admin/auth/user/1/ Caught an exception while rendering: dict objects are unhashable" Is this a bug? how far back should I

Re: where does admin add ... tags to data?

2009-07-09 Thread Some Guy
thanks, indeed you are right. Now to find out how bad I can break things by moving that behavior to the other template. On Jul 9, 5:34 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Thu, Jul 9, 2009 at 6:22 PM, Some Guy <djul...@gmail.com> wrote: > > >

where does admin add ... tags to data?

2009-07-09 Thread Some Guy
I've found the following in the template ... {% for result in results %} {% for item in result %} {{ item }}{% endfor %} {% endfor %} I would like to apply an additional template tag to {{item}}, i.e. {{item|default_if_none:"" }} I have discovered that in this template {{ item }} is already

Re: apply default_if_none filter type behavior in admin fields?

2009-07-03 Thread Some Guy
Of course it should be default_if_none template tag, but it mangled my link On Jul 3, 3:43 pm, Some Guy <djul...@gmail.com> wrote: > Hi, > I wonder if anyone has ideas about the best way to do this. > > My field shows up as (None) in the change_list view on admin.  I wo

apply default_if_none filter type behavior in admin fields?

2009-07-03 Thread Some Guy
Hi, I wonder if anyone has ideas about the best way to do this. My field shows up as (None) in the change_list view on admin. I would love to have a behavior similar to default_if_none template tag. My Ideas 1. making a new template just for this seems difficult. 2.I

Re: No css in Admin

2009-07-01 Thread Some Guy
rdo...@linovia.com> wrote: > On Wed, 2009-07-01 at 13:01 -0700, Some Guy wrote: > > Hi Group, > > I've look all over to find the answer but am now posting out of > > desperation :) > > > I have a dev and prod server (apache2, mod_python) > > > on the production

No css in Admin

2009-07-01 Thread Some Guy
Hi Group, I've look all over to find the answer but am now posting out of desperation :) I have a dev and prod server (apache2, mod_python) on the production server the css and js for the admin site does not work. (except for the login page) The images show up but no css styles are applied.

Re: Why Syntax Errors in URLconf are Silent?

2009-02-07 Thread Guy Rutenberg
ashing and reporting a Syntax Error exception it reported a failure to do a reverse lookup, which I found to be confusing. Thanks, Guy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

  1   2   >