Re: Hello World!

2023-10-13 Thread Onjomba Felix
Look at how you configure your static files and also the deburg mode of your system Settings.py DEBUG = True STATIC_URL = '/static/' STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")] main urls.py from django.conf import settings from django.conf.urls.static import static urlpatterns = [

Re: Newtwork Marketing System

2023-06-15 Thread Abdul Felix
in persons %} {{ person.name }} {% endfor %} Or follow me @ GitHub.com/developer-felix I post more codes on federals On Thu, Jun 15, 2023, 11:16 AM John Ayodele wrote: > Hi Everyone! > So I want to know how to implement a binar

Re: Mpesa integration.

2022-09-06 Thread Onjomba Felix
https://github.com/Developer-Felix/mpesa-payments-package On Tue, 6 Sept 2022 at 19:00, Brian Odhiambo wrote: > Hello, > @onjombafel...@gmail.com, seems the repo you share isn't public. Can you > please make it, or add me to it if you don't mind. > Thank you. > > On Tue, Sep

Re: Mpesa integration.

2022-09-06 Thread Onjomba Felix
Yeah On Tue, 6 Sept 2022 at 13:15, Lutalo Bbosa joseph wrote: > Flutterwave gives everything at your plate mpesa inclusive > > On Tue, Sep 6, 2022, 12:08 Walid Kambagha wrote: > >> Hi Felix, >> >> Does the package you shared works also with Mpesa Vodac

Re: Mpesa integration.

2022-09-06 Thread Onjomba Felix
hae i have used used mpesa with python django even developed a pip package of how to do integration you can check on https://pypi.org/project/mpesa-payments/ and the documentation is here https://github.com/Developer-Felix/mpesa-payments-package. Go through it and if you dont understand

Hire Me

2022-09-03 Thread Onjomba Felix
https://www.felixonjomba.netlify.app/ -- 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

Job Inquiry

2022-08-18 Thread Onjomba Felix
Hey guys I Am A django developer with three year experience looking for a job. Please refer to my CV attached below. Thank you So Much -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Error on import psycopg2

2021-09-19 Thread Felix Orinda
pip install psycopg2-binary Should work for you. Give me feedback on whether it has worked or not On Sep 17, 2021 21:18, "Aashish Kumar" wrote: install this package  pip install psycopg2-binary It works perfectly On Wed, 15 Sep 2021 at 9:40 PM, 'Maryam Yousaf' via Django users <

Re: Please help, I can't install django after a fresh installation of python 3.9 on windows 10

2021-03-21 Thread Felix Orinda
Try python3. 9 -m pip install django==3.1.7 On Fri, Mar 19, 2021, 16:45 Anornymous u wrote: > Yoh, join WhatsApp group and share error > https://chat.whatsapp.com/Fb4d6Ivkio7H3EXKxNFI5q > > On Thu, Mar 18, 2021, 21:47 Kasper Laudrup wrote: > >> On 18/03/2021 19.04, Simon Lankwagh wrote: >> > I

Re: Recruitment

2020-09-25 Thread Abimbola Felix
Am interested On Wed, Sep 23, 2020, 3:43 PM Anh Nguyen wrote: > I’m, interested! > > On Sep 23, 2020, at 14:23, Harish Thiyagharajan < > harishthiyagh...@gmail.com> wrote: > > I want a interested django user , DM mail for more details , all the > details including payment can be discussed

Django 2.2 mongoengine query pagination performance

2019-08-07 Thread Felix Tillyard
Hi, We are facing an issue while upgrading from Django 2.1.10 to 2.2.4. We are using mongoengine (http://mongoengine.org/) to pull some documents from a Mongo database. Following the upgrade performance of this is significantly worse. We ran some profiling using pyspy

Re: Help with aggregates needed

2019-03-01 Thread Felix Carbonell
Hello, Simon. Thank you very much! Your solution worked like a charm!!! Best regards, Felix. El jueves, 28 de febrero de 2019, 0:09:35 (UTC-5), Simon Charette escribió: > > Hello Felix, > > month = ... > year = ... > Expenses.objects.filter( > year=year, > ).v

Help with aggregates needed

2019-02-27 Thread Felix Lazaro Carbonell
in advance, Felix. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to dj

Issue with model method (Solved)

2018-12-13 Thread Felix Lazaro Carbonell
I beg your pardon. It was my mistake in a functional test. I missed part of the data needed to make it work correctly. Thank you all. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Issue with model method

2018-12-12 Thread Felix Carbonell
El martes, 11 de diciembre de 2018, 9:46:07 (UTC-5), Yarving Liu escribió: > > Can you show us the code? > Hello and thanks for your response: {{ ccosto.gastos_mes }} and {{ ccosto.gastos_ano }} yield None Nevertheless if I print the response content when calling that URI with django test

Issue with model method

2018-12-10 Thread Felix Lazaro Carbobonell
and the result from the model method is correctly rendered in the template. Could you please help me with this issue. Best regards, Felix Carbonell. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Problem with date validator

2015-11-02 Thread felix
El 24/09/15 15:18, felix escribió: El 23/09/15 17:12, felix escribió: When today's date is entered in the form it shows a form error saying that this date (today) is in the future. What is wrong with the validator I'm using to allow dates until today? models.py ... import datetime

Re: Problem with date validator

2015-09-24 Thread felix
El 23/09/15 17:12, felix escribió: When today's date is entered in the form it shows a form error saying that this date (today) is in the future. What is wrong with the validator I'm using to allow dates until today? models.py ... import datetime ... class SolicitudBase(models.Model

Problem with date validator

2015-09-23 Thread felix
n timezone. and right now: root@webapp:~# date Wed Sep 23 17:04:36 EDT 2015 Thanks in advance, Felix. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to d

Re: About multiple GET params persistance between requests

2015-08-03 Thread felix
El 03/08/15 09:42, duriromp...@gmail.com escribió: I'm in a point of my app where I've two GET params, *p* and *q* (pagination and query search), and I think that the best method to remember the params value when you change page is to use a string to manually build up the params URL. Any

Re: About models validators location

2015-07-29 Thread felix
El 29/07/15 10:54, duriromp...@gmail.com escribió: I've searched for where to put the validators for my models, but I only found that they fit in *models.py*, outside the model class. Is that correct or I should create a specific file for them? I think that you can put validators in another

Re: Regarding Learning Django with collaboration

2015-07-17 Thread felix
*From: * Ben Thompson *Sender: * django-users@googlegroups.com *Date: *Fri, 17 Jul 2015 09:20:49 -0700 (PDT) *To: * *ReplyTo: * django-users@googlegroups.com *Subject: *Re: Regarding Learning Django with collaboration I have a small group

Re: Two Things: (1)-ModelChoiceField with a searchbox and (2)-Related Dropboxes

2015-07-15 Thread felix
nd then de model, it could be wrong (i.e. the user could choose Samsung and then 6S, and 6S is not a cellphone model of Samsung). I'm a newbie and I guess that you need to use AJAX to accomplish these tasks. A javascript library, or framework like AngularJS could be useful here. Cheers, Feli

Re: How to DRY, define a set of model-fields and reuse them as multiple instances

2015-06-10 Thread felix
El 10/06/15 12:33, ThomasTheDjangoFan escribió: Hi Bruno, Abstract Base Models come close but they don't allow me to combine multiple instances of the BaseModel in the DataHolderModel. My goal is to store them all in one table without having to manually add all the fields. Any

Re: Command line script > Ensure that its module, "models", is located inside an installed app. error

2015-06-08 Thread felix
m a newbie. I guess that *args, **options will keep your script working no matter how many positional or keyword arguments your command or the base command may have in the future. Cheers, Felix. -- You received this message because you are subscribed to the Google Groups "Djang

Re: Microsoft SQL Server and Azure SQL Database support

2015-05-21 Thread felix
El 20/05/15 14:39, Meet Bhagdev escribió: When I last checked the Django ORM did not have official support for SQL Server and Azure SQL DB. Is there a way to use SQL Server and more importantly Azure SQL DB by modifying the DATABASES configuration in settings.py Try django-pyodbc. On Linux

Re: Database and migrations are out of sync.

2015-04-24 Thread felix
El 24/04/15 12:16, Tim Graham escribió: I don't think so. When you create your initial migrations, you need to ensure they match the scheme of your database. After that, things shouldn't get out of sync. Any idea how that happened in the first place? On Friday, April 24, 2015 at 8:54:19 AM

Re: ListView CBV and a form

2015-04-24 Thread felix
to create new objects or UpdateView to update them. ListView is used to represent a list of objects. Cheers, Felix. -- 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, sen

Re: Create models table from exists database?

2015-04-21 Thread felix
El 21/04/15 03:15, Dario Concilio escribió: Hi to all! I'm new of django, I've a question for you: Can I create a new project using an exists database? I've a domotic system on Ubuntu Server, with a Postgres database that has several table. Actually the system uses a table by a python

Re: treemenus treemenu or sitetree

2015-04-16 Thread felix
El 16/04/15 15:27, Joris Benschop escribió: Hi List I'm currently using django-treemenus to show a site menu, but now that Im migrating to 1.8, Im getting imcompatibility bugs. What modules do you use to display link menus in your site? I found sitetree and treemenu but they are not

Re: how to access manager from a model instance?

2015-03-26 Thread felix
El 26/03/15 11:19, Erik Cederstrand escribió: Den 25/03/2015 kl. 20.20 skrev felix <fe...@epepm.cupet.cu>: Yes I know I can't acces the Manager from a model instance, but I need to check the value of a field saved in the database before updating it. Can I do it from the Model clean()

how to access manager from a model instance?

2015-03-25 Thread felix
Yes I know I can't acces the Manager from a model instance, but I need to check the value of a field saved in the database before updating it. Can I do it from the Model clean() method? Felix. -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: fake button run a view and come back to the same page.

2015-03-12 Thread felix
El 10/03/15 13:11, dk escribió: I been trying to find information on how to make a button to run a python script in the back. I do have a table with some buttons, and I want to click in one, and behind doors, will run a python script. since I don't know to much javascript or flask, or php I

Re: fake button run a view and come back to the same page.

2015-03-10 Thread felix
El 10/03/15 15:46, dk escribió: UHH redirect sounds easy.. yami yami. Felix how does the ajax works? I am assuming is a library of javascripts? and ajax can lunch the python code? ajax = Asynchronous Javascript And XML It means you can update part of a page without reloading

Re: FORM: How to specify current user as value for a form ForeignKey referencing logged on user

2015-03-09 Thread felix
El 08/03/15 14:40, Ryan Alexander escribió: Hey there, This seems like something that should be simple to do but I'm having a heck of a time with it and google searches don't reference anything that's helping me out. I have a form that a user fills out, and it creates a db row based on the

Re: what do you think about django FORM system?

2015-03-06 Thread felix
attribute at all but when I tried, it was displayed with a different size every time I changed the size. Felix -- 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 em

Re: what do you think about django FORM system?

2015-03-06 Thread felix
= forms.CharField(widget=forms.TextInput(attrs={'class': 'special'})) url = forms.URLField() comment = forms.CharField(widget=forms.TextInput(attrs={'size': '40'})) Cheers, Felix. -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: what do you think about django FORM system?

2015-03-06 Thread felix
El 06/03/15 09:38, john escribió: I can tell you what I found to be hard to understand (and I don't think I do understand at the moment) that is how to set the HTML, the types, ID, and any of the special attributes of the object. I understand that I can sub-class but it's also my

Re: what do you think about django FORM system?

2015-03-06 Thread felix
El 06/03/15 05:37, younger.shen escribió: Hello everyone: i use django since last year, and now i can not stand the django form any more, hard to use , especially custom error message , i use laravel for php development , and validator of laravel is very easy to use and very clean code , so

Re: icons let the template or resolve in the view?

2015-03-03 Thread felix
El 03/03/15 13:54, dk escribió: right now I am not using models, form the database, as concept I am pinging the computer, and making a list of lists with the ip and if the machines is up or down, like this. this is what I am passing to the template. [ [up, machine1],[up, machine2],[down,

Re: icons let the template or resolve in the view?

2015-03-03 Thread felix
for instance. If you have icons representing groups of computers then you could also use CHOICES in the model or even use an If tag in the template. Views process the info you will show on templates, being the latest in charge of how to display it. Cheers, Felix. -- You received this message

Re: django deployment in a virtual machine.

2015-02-25 Thread felix
/to/mysite.com/mysite/wsgi.py WSGIPythonPath /path/to/mysite.com Require all granted Cheers, Felix. -- 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

Re: Import error in settings.py

2014-10-22 Thread Felix Unchained
Just thought you might get a kick out of the fact that I just found this very useful – 4 years later. Thanks. On Tuesday, February 12, 2008 7:27:45 PM UTC-8, Julien wrote: > > Great! Thanks a lot, it worked! > > Here's a little function that I made and that is quite helpful: > > def

ImportError: cannot import name execute_manager

2014-02-07 Thread felix kimutai
I get the following error " Traceback (most recent call last): File "manage.py", line 2, in from django.core.management import execute_manager ImportError: cannot import name execute_manager " when I run this command : python manage.py runserver, what could be the problem. -- You

Django management call_command

2013-03-24 Thread Felix Wagner
Hello, I wrote a test management Command: def start_daemon(): pidfile_rule = "/tmp/ihe_test.pid" p = str(os.getpid()) file(pidfile_rule, 'w').write(p) while True: print "Hello" sleep(10) class Command(BaseCommand): help = 'Starts or stops the daemons'

Python inside Django

2013-03-23 Thread Felix Wagner
Hello, currently I am writing an application that will run a daemon. However I am stuck: What I have so far: created a project called "ihe", with an app called "devices". Inside devices there is "admin.py", "forms.py", "__init__.py", "models.py", "urls.py", "views.py". There are also several

Re: Django-filebrowser path problems

2012-12-07 Thread Felix Schlitter
Thanks for sharing! On Sunday, 6 February 2011 16:27:16 UTC+13, gerram wrote: > > I decided my problem! > If you use dynamic method for getting you path, example: > > import os > SITE_ROOT = os.path.realpath(os.path.dirname(__file__)) > MEDIA_ROOT = os.path.join(SITE_ROOT, 'media') > > you

Re: Django 1.4: TypeError: get_db_prep_value() got an unexpected keyword argument 'connection'

2012-11-23 Thread Felix Guo
/compiler.py line 872. Are you sure your latest installation package completely remove the function? Thank you Felix Guo On Sunday, April 8, 2012 1:31:17 PM UTC+10, Russell Keith-Magee wrote: > > Hi, > > What you've hit here is the end of the deprecation cycle for code that >

Edit two related models on one form

2012-10-06 Thread Felix Schlitter
for this that I missed? Seems like this scenario would be a pretty common problem, Felix -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/ikvVkFXPhKU

Django + Ajax/Javascript

2011-11-02 Thread Felix Wagner
Hi, I have the following model layout: class A(models.model): options = models.ManyToManyField(OptionSet, blank=True, null=True) values = models.ManyToManyField(Value, blank=True, null=True) class OptionSet(models.model): name = models.TextField(unique=True) values =

Re: Question about QuerySet and Pagination

2011-09-29 Thread Felix Wagner
Thank you very much for your help On Sep 29, 4:25 pm, Tom Evans <tevans...@googlemail.com> wrote: > On Thu, Sep 29, 2011 at 3:16 PM, Felix Wagner <hsaldi...@googlemail.com> > wrote: > > Ok, so now i have: > > .. > >             > ... > > Now if

Re: Question about QuerySet and Pagination

2011-09-29 Thread Felix Wagner
p 29, 3:51 pm, Tom Evans <tevans...@googlemail.com> wrote: > On Thu, Sep 29, 2011 at 8:36 AM, Felix Wagner <hsaldi...@googlemail.com> > wrote: > > Hello, > > > I'm currently trying to paginate my results from a search query. > > > views.py: > >

Question about QuerySet and Pagination

2011-09-29 Thread Felix Wagner
Hello, I'm currently trying to paginate my results from a search query. views.py: def search(request): query = request.GET.get('q', '') if query: qset = ( Q(NAME__icontains=query) ) results = Thin_Client.objects.filter(qset).distinct() else:

Testcases are not working with PREPEND_WWW

2011-09-20 Thread Felix Stiehler
=True) r.status_code 301 r.content '' r.redirect_chain [] Any help how to make the tests work without touching some webserver config stuff would be appreciated. Felix -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Need HELP urgently

2011-01-13 Thread felix
django ajax select will work (jQuery): http://code.google.com/p/django-ajax-selects/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send

Re: possible bug in joining on a geo field

2010-12-19 Thread felix
ah no, now I get it: geo queries requires a GeoManager. so even though the starting class does not have gis fields, it needs a GeoManager in order to build queries addressing fields on the other model. I'm not sure what should happen, the error messaging is very misleading, but once you know

Re: possible bug in joining on a geo field

2010-12-18 Thread felix
I have discovered the exact same issue. class Apt(Model): geo = models.PointField(srid=4326,editable=False,default=Point(0,0)) bldg = models.ForeignKey(Bldg,null=True) class AptStatus(Model): apt = models.ForeignKey(Apt) class DP_5cbc61d6(Model): apt =

django ticket tracking

2010-11-24 Thread felix
The django ticket system regards everything as spam. There doesn't seem to be a way to get a password reset. I created a new account, verified it, but the username/password or the email/password still do not work to login. anybody have any advice as to what to do now ? -- You received this

django bug with __iexact

2010-11-24 Thread felix
from django.contrib.auth.models import * User.objects.filter(username__iexact="/turtle") *** ValueError: list.index(x): x not in list URL: http://code.djangoproject.com/svn/django/trunk Repository Root: http://code.djangoproject.com/svn Repository UUID: bcc190cf-cafb-0310-a4f2-bffc1f526a37

Re: Import csv file in admin

2010-10-30 Thread Felix Dreissig
or just keep it as a file object and then process it as Jirka pointed out. Regards, Felix On 29.10.2010 18:31, Jorge wrote: > Jirka > > I need an easy method inside the admin to upload the csv file with an > web interface. I guess with your method the admin will need access to

Re: View to edit many-to-many relationship with extra fields

2010-10-02 Thread Felix Dreissig
I'm not at all sure that this might help youm, so sorry if I write BS... Can't you just use form prefixes to kepp the form namespaces seperated? http://docs.djangoproject.com/en/1.2/ref/forms/api/#prefixes-for-forms Regards, Felix On 01.10.2010 22:22, ses1984 wrote: > h

bizarre __iexact behavior

2010-09-29 Thread felix
class KeywordPage(models.Model): url = models.CharField(blank=False, max_length=100,unique=True) ipdb> KeywordPage.objects.filter(url__iexact='/path/to/something/') *** IndexError: list index out of range ipdb> KeywordPage.objects.filter(url__iexact='/path/to/something') *** ValueError:

Strategies for larger site development

2010-09-29 Thread felix
Once django projects get large and sites have many features, many models, modules and apps then dev server restart time becomes a huge problem. Compile/Run cycle with C++ or Objective C is significantly faster than just correcting one typo in Django source and trying to get the server to restart.

Re: JavaScript with Dango

2010-09-26 Thread Felix Dreissig
Yep, sure you can use AJAX/Javascript in Django projects. http://www.b-list.org/weblog/2006/jul/02/django-and-ajax/ might be a good read. Regards, Felix On 26.09.2010 13:48, aug dawg wrote: > Does Django work with JavaScript? If so, how can I use JavaScript in my > Django pr

Re: Django 1.2.1. admin WYSIWYG editor

2010-09-21 Thread felix
I got sick of TinyMCE and switched to jQuery wysiwyg sorry this is just posted raw like this, but here it is. I should wrap it up on github. requires http://code.google.com/p/jwysiwyg/ and the 3 files stated below to be in your compress stack or on your page from django import forms from

Re: process memory swelling during uploads

2010-09-20 Thread felix
to correctly only load the first 32768 Or MP3Info Maybe a specific broken file caused it to trust the headers and read it in Still, any advice on nginx/apache cooperation greatly appreciated On Sep 20, 10:10 pm, felix <crucialfe...@gmail.com> wrote: > I'm running Nginx front end proxying

process memory swelling during uploads

2010-09-20 Thread felix
I'm running Nginx front end proxying to Apache with mod_wsgi in Daemon mode. When uploading files the apache/django process is occasionally swelling up as though it were loading the whole file into memory. I've even removed the MemoryFileUploadHandler from the file upload handlers just to be

Re: Change variable value after a click

2010-09-10 Thread Felix Dreissig
It's definitely a good idea to gain some AJAX experience first, but on how to integrate it with Django: You'll have to write a special view to retrieve the additional elements to be displayed on the page. That's "how to do it" in general, hope it'll help you a bit Regards, Felix On

Speed of django dev server start up

2010-09-07 Thread felix
Does anybody know of any tricks or patches for working with the development server that could speed up its startup time ? Currently if your site is large and has many modules, models, admins, forms etc then django development time slows down dramatically. I'm thinking that the models don't need

Re: Regrouping forms in formsets

2010-09-04 Thread Felix H.
{% regroup formset.forms by instance.attribute as forms_by_attribute %} {# ... looping over the regrouped list, as usual ... #} With this, the regrouping of forms works wonderfully. I hope this helps someone, someday :-) -Felix -- You received this message because you are subscribed to the Goo

Regrouping forms in formsets

2010-09-03 Thread Felix H.
' a formset in html in the template, but both of these are not really nice solutions) I'd be very grateful for any hints on how to solve this -- your help is much appreciated. Thanks! -Felix ___ WEB.DE DSL SOMMER-SPECIAL: Surf & Phone

Re: urlencode in Django

2010-08-30 Thread Felix Dreissig
The urlquote() function from django.utils.http and the "urlencode" template filter might be exactly what you're looking for. Regards, Felix refreegrata schrieb: Hello lista, I'm a newbie in django. In php i have the urlencode function for encoding an url with characters

Re: After sync signal?

2010-07-02 Thread felix
you might have already seen this ticket: http://code.djangoproject.com/ticket/7561 re: post-sync isn't actually post sync you could patch your deployed version of django of course I would just use a standalone script or command that you run after syncing. if you can On Jul 1, 5:34 pm, Jari

Re: Admin with only inlines, no fields

2010-06-29 Thread felix
> is not validated and see what are the errors. > > Atenciosamente, > Vinicius Mendes > Solucione Sistemas > vinic...@solucione.info > > > > On Tue, Jun 29, 2010 at 12:14 PM, felix <crucialfe...@gmail.com> wrote: > > > I need to present an admin form tha

Admin with only inlines, no fields

2010-06-29 Thread felix
I need to present an admin form that has no fields from the model and only offers admin inlines. class AptTranslationForm(DefaultModelForm): class Meta: model = AptTranslation class AptTranslationsAdmin(models.Admin): inlines = [AptTranslation_Inline,] fields = [] the

Re: IntegrityError exception not caught by Django

2010-06-14 Thread felix
thanks again anssi, stellar reply I might do this below. the tracking is the last thing to happen before rendering, so there are no more UPDATE or INSERTS and in most cases views that use tracking don't do anything but select anyway but OTOH I'm already running rabbit and celery so I might

Re: IntegrityError exception not caught by Django

2010-06-13 Thread felix
brilliant, you are correct: Foreign-key constraints: "traffic_tracking2010_content_type_id_fkey" FOREIGN KEY (content_type_id) REFERENCES django_content_type(id) DEFERRABLE INITIALLY DEFERRED "traffic_tracking2010_src_content_type_id_fkey" FOREIGN KEY (src_content_type_id) REFERENCES

IntegrityError exception not caught by Django

2010-06-13 Thread felix
In the process of serving a view I am saving a record that an incoming URL specified a tracking ID. One of the URLs got mangled by somebody somewhere resulting in it being decoded as a non-existent user ID. # I would expect this to throw an integrity error tracking.save() but it doesn't

Re: ManyToMany autocomplete field and large amounts of autocomplete data

2010-06-11 Thread felix
http://code.google.com/p/django-ajax-selects/ satisfies all requirements the channels will allow even finer customization for the queries and the display. On Jun 11, 12:01 pm, akaariai wrote: > Hello all, > > I am looking for an m2m autocomplete field which should have

occasional: 'ManagementForm data is missing or has been tampered with'

2010-06-10 Thread felix
When using admin inline forms I am occasionally getting these odd errors, the vast majority of them from a single user. The POST is missing many fields (including the management form ones) and one of the fields (description) is even cut off in the middle ! POST:Call Howard at xxx-xxx- for

Re: error: unsupported operand type(s) for *: 'Decimal' and 'float'

2010-06-10 Thread felix
use float( form.cleaned_data['a'] ) etc also, when retreiving the field from the db it will be a Decimal object and needs to be converted to do math with it on_sale = float(myObj.price) * 0.9 On Jun 10, 9:22 pm, Waleria wrote: > Hello.. > > I again.now my

Re: Exception Value: No module named urls

2010-03-11 Thread felix
its an ImportError which means that it couldn't find your main urls.py or possibly a sub urls that you are including. check your python paths you need to include the folder ABOVE the module you are addressing eg. folder app urls.py models.py folder needs to be on the python

Re: How to make django use a different python interpreter located at some random location.

2010-03-11 Thread felix
also checkout buildout which does a similar thing to virtualenv but also allows you to specify the exact interpreter and all dependencies / eggs / apps and installs those. it makes development very portable since you can quickly set up the exact same environment (including a specific python

Re: Multi Queryset one Paginator

2010-03-10 Thread felix
post the code that chains them together probably the problem is that paginator needs to slice the query set, and the chain you have isn't capable of doing that. either write a fancier chain that can count the length of both queries and then figure out how it has to slice them or do it in the

Re: send_mass_mail()

2010-03-10 Thread felix
I have a site that sends 40k in a day. take a look at http://code.google.com/p/django-mailer/ I'm using that, though I've now modified it and not had a chance to release my version. mails are put into a queue and the queue is fed by a background daemon loop I've added html support and

Re: Extending a custom built API

2010-03-08 Thread felix
you are already basically there id = request.GET.get('id') if id: ids = id.split(',') slideshows = slideshow.objects.filter(id__in=ids) then returns that as json however you like On Mar 8, 11:41 pm, Nick wrote: > I am working on an api that outputs a list of JSON

Re: import errors when starting django on staging server, no errors on local dev server

2010-03-08 Thread felix
thanks for the offer, but as I said : the problem is long since solved. it was a circular import problem. I reworked the imports and its gone. my question was: how could it have happened on the staging server and not on the dev server ? I was just asking around to see if anybody had seen that

Re: import errors when starting django on staging server, no errors on local dev server

2010-03-08 Thread felix
On Mar 8, 1:25 am, Graham Dumpleton wrote: > You don't say anything about what hosting mechanisms you are using for > each. local: django's runserver staging: mod_wsgi apache one thing I should do is test locally using wsgi Do you have any suggestions regarding

import errors when starting django on staging server, no errors on local dev server

2010-03-07 Thread felix
I have two identical django deployments and one of them (the beta staging server) is having import errors on startup and is failing. 1. is something causing the deployments to be loading classes in different orders ? the directory structure is identical, the pythonpaths are in an identical

Re: how to get as_sql() to work again

2010-02-22 Thread felix
On Feb 23, 12:32 am, Russell Keith-Magee wrote: > To reinforce my point - if you're using Django's ORM, you shouldn't > have to care about the underlying query. The ORM *should* be > abstracting these details so that you don't care. I realize that > inspecting query

Re: how to get as_sql() to work again

2010-02-22 Thread felix
On Feb 22, 9:22 am, Russell Keith-Magee wrote: > > However getting the SQL that will be produced is essential.  There > > needs to be a utility method somewhere that will give us this sql and > > it needs to remain stable. > > Well, no -- it isn't essential. It might be

Re: how to get as_sql() to work again

2010-02-21 Thread felix
from django.db import connections def dbug(): pdb.set_trace() def qbug(qs,caption=""): connection = connections['default'] aa,bb=qs._as_sql(connection) print caption, aa % bb return qs -- You received this message because you are subscribed to the Google Groups "Django

apparent bug in QuerySet

2010-02-21 Thread felix
This seems so blatant that it couldn't really be a bug without someone noticing. Django 1.2 qs = Apt.objects.filter(list_on_web=True,is_available=True) # FastAdderStatus has Apt and Service as fk qs = qs.filter(fastadderstatus__service=self.service) # later on

how to get as_sql() to work again

2010-02-21 Thread felix
As of 1.2 and multi-db how do I get the sql that will be produced from a query set ? Since 1.2 and multi-db, the previous methods are no longer working. Its been said here that we shouldn't depend on internal functions as they may change. However getting the SQL that will be produced is

Re: specifying the pk for an insert

2010-02-08 Thread felix
well I'll be damned, it worked usage: apt = Apt() # old is coming via multi-db connection to mysql # apt is saved in postgres apt.id = old.id # the seq name is {app}_{model}_id_seq legacy_save(apt,'nsproperties_apt_id_seq') # after all apts are imported then set the seq correctly:

specifying the pk for an insert

2010-02-08 Thread felix
Hello - I'm migrating a large site (mysql/php to postgres/django) and would like to keep the primary ID of one of the tables. The id is public as in people call other people on the phone and say "hey what about that #9843 ?" all the code already refers to the ID for URLs etc. I'm thinking that

bizarre: Tabular Inline not showing in form when Debug is off

2009-09-01 Thread felix
not show, so the form is broken due to missing parts. When debug is on the TabularInline is there and the form can be edited and saved. Does anybody have any insight as to why ? -- felix --~--~-~--~~~---~--~~ You received this message because you are subscribed

confusion using defer() or only()

2009-06-17 Thread felix
Django 1.1 rev 11018 stores = ReleaseStoreLink.objects.filter(release=self) \ .select_related('store','store__contact') \ .only('url','store__name','store__contact__url') ss = stores[0] ReleaseStoreLink has a method logo, it is not a db field when using

Help with some models inheritance and the use of default

2009-05-06 Thread Felix
I have the next models: class Place(models.Model): currency = models.CharField(_('currency'), max_length=128, blank=True, null=True) language = models.CharField(_('official language'), max_length=128, blank=True, null=True) class Meta: abstract = True class Country(Place):

Configuring the Admin of a child class

2009-04-23 Thread Felix de Vitramar
Hi, I am still pretty new here and a bit confused. I have the next models: Place is an abstract class class Place(models.Model): place = models.CharField(_('place'), max_length=128) currency = models.CharField(_('currency'), max_length=128) #... #... and many other generic

  1   2   3   >