Hello, I can do this reach me through onjombafel...@gmail.com
On Wed, Dec 4, 2024, 11:06 PM Adan Popov wrote:
> I have some works to be done on the frontend for a project, but I'm not
> fluent in frontend libraries or frameworks.
> Please ping me if you can do some frontend works and also can wo
Hello, reach me through skyplussoftw...@gmail.com
On Mon, Nov 25, 2024, 9:30 PM utibe solomon wrote:
> Hello guys, I am seeking a django internship job which i can use to
> increase my level of experience and work on production level applications
> , I have about 3 years experience in django
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 = [
Account Balance:
Referral:
None
{% for person in persons %}
{{ person.name }}
{% endfor %}
Or follow me @ GitHub.com/developer-felix I post more codes on federals
On Thu, Jun 1
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
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 Vodacom from Ta
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
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 w
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 emails
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 <
django-users
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
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 ...loo
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 (https://github.com/benfr
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
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
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 emails
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 cl
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
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
...
impor
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(mo
(debian 7) is using US/Eastern 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 email
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 ideas?
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 fil
*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 myself that I have been looking to expand. At the
moment
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,
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 suggestions?
Oscar
I'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
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
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 UTC
urn context
I think that you shoul use CreateView 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
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
servic
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 mentioned
El 26/03/15 11:19, Erik Cederstrand escribió:
Den 25/03/2015 kl. 20.20 skrev 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?
Depending on
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
us
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 d
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
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
ttrs={'size': '40'}))
I wasn't using the size 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.
T
mentForm(forms.Form):
name = 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
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 understanding
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 i
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, ma
d 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 me
th/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 e
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 get_class(c
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 rec
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'
opti
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
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 ca
s/sql/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 t
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/-/ikvVkFXPh
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 = models.ManyT
Thank you very much for your help
On Sep 29, 4:25 pm, Tom Evans wrote:
> On Thu, Sep 29, 2011 at 3:16 PM, Felix Wagner
> wrote:
> > Ok, so now i have:
> > ..
> > > ...
> > Now if i click next page I get an empty page because:
> >http:/
url entry and do i have to give the poaginator the
query or do I have to save the query somewhere?
Also thank you for your help.
On Sep 29, 3:51 pm, Tom Evans wrote:
> On Thu, Sep 29, 2011 at 8:36 AM, Felix Wagner
> wrote:
> > Hello,
>
> > I'm curre
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:
7;, follow=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"
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 ema
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 t
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 = models.Fo
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 mes
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
Revi
orarily 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 t
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 wro
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: li
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.
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
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 dja
appears 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 wrote:
> I'm running Nginx front end proxying to Apache with
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 sure
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
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 t
{% 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
and
'faking' 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 SOM
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 c
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
s 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 wrote:
>
> > I need to present an admin form that has no fields from the model and
> &
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 e
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 mess
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 djan
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
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 the
> following charact
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 sh
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 problem is:
>
> I have the fu
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
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 inter
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 vi
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 actually
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 based on certain
> crite
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
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 question 2:
how can I do a qui
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 order
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 internals can be useful in p
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 a very handy debugging
>
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 us
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 h
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 essential
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:
set_max_seq
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
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
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 t
1 - 100 of 244 matches
Mail list logo