interested.Sent from my iPhoneOn Nov 26, 2023, at 2:46 PM, ekong, emmanuel wrote:I am interestedPhone ( WhatsApp): +234-8071-505-514On Thu, 23 Nov 2023 at 7:13 PM, Youssef Bachraoui wrote:Hi developer i search to make a group on WhatsApp to begin a project together a
Hello bro, I hope you’re doing well? I’m a Jerry, a newbie in software
development, I have basic knowledge in HTML, CSS, JavaScript and python and
I really need a mentor who can help me through, so I can be very skill at
it. I’ll love if you can be my mentor, I would really appreciate it. Thank
you
Hello guys, hope you are doing well
I'm building an online multivendor marketplaces and i want customers to be
able to send email from a form to a vendor in a product details page, can
anyone please help me with this?
A link to a tutorial will be very helpful.
Thanks in advance.
--
You received t
How do I make my domain be like
https://my domain.herokuapp.com/mainapp/ when I open my Django app hosted
on heroku
--
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
my main project urls.py file has
urlpatterns = [
path('mainapp/', include('mainapp.urls', namespace='mainap)),
]
and my app urls.py has the following path
path('', views.item_list, name='item_list'),
my allowed hosts in settings is
ALLOWED_HOSTS = ['.herokuapp.com']
i have already deployed the a
Did you activate your virtual environment?
Sent from my iPhone
> On Mar 22, 2022, at 10:32 PM, 'Delvin Alexander' via Django users
> wrote:
>
> i did that but the problem still remains :(
>
>> On Tuesday, March 22, 2022 at 2:09:33 AM UTC-7 sebasti...@gmail.com wrote:
>> Hey,
>>
>> I think y
Thanks, I'll check it out
On Thu, Mar 17, 2022, 10:05 RANGA BHARATH JINKA
wrote:
> Hi,
>
> Please try this.
>
>
> https://stackoverflow.com/questions/11779246/how-to-show-a-pdf-file-in-a-django-view
>
> On Thu, Mar 17, 2022 at 12:12 PM Dexterr Jay wrote:
>
>
Hello guys, I'm developing a job board, and I want to display uploaded
files in job detailview without downloading the file.
When job seakers open a posted job I want the uploaded file from employer
to be rendered in web browser
--
You received this message because you are subscribed to the Googl
Hello guys, can someone please help me to implement product comparison in
Django e-commerce website, perhaps some guideline or link to a tutorial
will be very helpful. Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from th
We're trying to place and image outside of the intro on the bottom left of
the screen over the parallax image. We could make a flowing image that
stays on the bottom left but we would prefer a one time image on the first
page/image only.
Any assistance would be greatly appreciated.
--
You re
[image: image.png]
i need help with design of the above models for my student result system
project
--
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+
{% endblock %}
On Friday, November 27, 2020 at 8:16:43 PM UTC+9 zica...@gmail.com wrote:
> It is misspelled, the right is *csrf_token*
>
> Em quinta-feira, 26 de novembro de 2020 às 14:57:37 UTC-3,
> dils...@gmail.com escreveu:
>
>> hi friends,
>>
>> please help me to resolve this issue..
>>
>>
My Models
class Student(models.Model):
name = models.CharField(max_length=200, null=True, blank=True)
classroom = models.ForeignKey(‘Classroom’,
on_delete=models.DO_NOTHING,blank=True, null=True)
class Classroom(models.Model):
name = models.CharField(max_length=40,blank=True, null=True)
class Fe
You also need to close your quote.
On Tue, Jul 7, 2020 at 11:54 AM Kevin Jay wrote:
> I’ve had the same issue in the past. I fixed it by removing
> *rel="stylesheet *
>
>
> On Mon, Jul 6, 2020 at 1:20 PM ashish goyal
> wrote:
>
>> Hi All,
>>
>> I h
I’ve had the same issue in the past. I fixed it by removing
*rel="stylesheet *
On Mon, Jul 6, 2020 at 1:20 PM ashish goyal
wrote:
> Hi All,
>
> I have created a django app on windows and have used bootstrap navbar n
> other functions which are working good on windows.
>
> Same files I have impo
Hello everyone,
Still stucked on this pointHas anyone tried it?
--
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.
T
Hello Everyone,
I need a help from you. I'm learning Django and working on my own project but
got stuck on a point. Your inputs will be highly appreciated.
Little background: I'm creating a web app like investment portfolio. I have
created a model based form to input the stock transaction i.e.
Hello All,
Hope you are doing well!
I need a help. I'm learning Django and working on my own project but got stuck
on a point. Your inputs will be highly appreciated.
Little background: I'm creating a web app like investment portfolio. I have
created a model based form to input the stock trans
Sir hi I am aman , look at following error message:
django.contrib.auth.models.DoesNotExist: User matching query does not
exist.
So on this my suggestion is
What you importing from django.contrib.auth.models
first check that needed query is present at above or not...
On Wed, Apr 1, 2020, 11:54
What's the best way (or the standard way, or your preferred way) to
organize custom admin views? Assuming we want to leave the built-in Django
Admin in place and create entirely new admin views, would the optimal
organization be:
*A new app?*
blogapp/
views.py
viewsets.py
models.py
shoppi
I meant to type ‘harish.b’
On Tue, Oct 29, 2019 at 11:37 PM Kevin Jay wrote:
> Does the user ‘garish.b’ have a system password?
>
> On Tue, Oct 29, 2019 at 10:38 PM hari49pf wrote:
>
>> Hi sir,
>> I didn't understood, can u elaborate, I am new to django, Plz,
Does the user ‘garish.b’ have a system password?
On Tue, Oct 29, 2019 at 10:38 PM hari49pf wrote:
> Hi sir,
> I didn't understood, can u elaborate, I am new to django, Plz, help me out.
>
> regards.
> Harish.Bheemanpaly
>
> On Wednesday, October 30, 2019 at 1:21:50 AM UTC+5:30, sacrac wrote:
>>
I also prefer text over video. However, Corey Schafer has an excellent
video series that is really well done. He doesn’t waste time babbling or
stumbling over words. He also provides a link to his github repo so you can
let ok over the code.
On Tue, Sep 10, 2019 at 8:19 PM 'Nicholas Hatch' via Dj
Please reply with your models schema.
On Thu, Sep 5, 2019 at 7:56 AM dev wrote:
> Hi All,
>
> How to get the ForeignKey value while querying the model object.
>
>
>
> I was trying to query a model object "mla" to fetch a specific sets of
> columns and its working fine but the field ForeignKey i
It isn't possible to share a local db between two apps.
Here are the alternatives you can use:
- Create api's for all the operations you want to perform.
- Use an hosted db service(e.g. Postgres on heroku).
On Wed, Sep 4, 2019 at 10:39 AM Balaji Shetty
wrote:
> Hi Everyone
>
> Can anybo
kevin@kjay,net
On Wed, May 22, 2019 at 10:19 AM Rounak Jain wrote:
>
> I am using DRF Viewsets to auto-generate URLs for different views. Is it
> possible to write the code below without using regex?
> Thanks
>
> from .views import TaskViewSet
> from rest_framework.routers import DefaultRouter
>
Remove the spaces in the paths:
WSGIPythonPath / var / www / html / ecommerce /
should be
WSGIPythonPath /var/www/html/ecommerce/
Do the same for the other paths
On Tue, May 7, 2019 at 8:57 AM N'BE SORO wrote:
>
> Hi I'm a beginner in python and I realized a project in Django. I have
> problem
You are correct.
Django creates a primary key of 'id' for each table as an integer by
default. So foreignkey will reference that primary key which by default is
an integer.
If the primary key is changed to some other type, Django can still handle
it.
Apparently using integers is the more efficient
Maybe that was a typo?
The foreignkey relationship would look like this:
object = models.ForeignKey(FacePng'', max_length=128, blank=False,
null=False, unique=True)
On Mon, May 6, 2019 at 12:44 PM wrote:
> Just want to make sure I understand. ForeighKeys need to be integers?
>
> Only integers?
The field within your class should be set to ForeignKey.
Try this:
Object = models.ForeignKey(‘FacePng’, on_delete=SET_NULL, max_length= some_int)
on_delete and max_length need to be set based on your requirements
Sent from my iPhone
> On May 6, 2019, at 11:28 AM, b...@tanners.org wrote:
>
>
ke...@kjay.net
On Tue, Apr 2, 2019 at 4:12 PM nikolaysm wrote:
> Hello,
>
> In function _construct_form variable "pk_key" is generated as:
> pk_key = "%s-%s" % (self.add_prefix (i), self.model._meta.pk.name) "
>
> So pk_key is not flexible. Because if I overwrite function "add_prefix"
> from cl
Disregard...Wrong thread.
On Sun, Mar 10, 2019 at 2:47 PM Kevin Jay wrote:
>
> Here is the relevant template from the link provided
>
>>
>>1.
>>2.
>>3.
>>4.
>>5. Employee Records
>>6. {% load static
Here is the relevant template from the link provided
>
>1.
>2.
>3.
>4.
>5. Employee Records
>6. {% load staticfiles %}
>7.
>8.
>9.
>10.
>11.
>12.
>13. Employee ID
>14. Employee Name
>15.
t.all
>
>
>
> model_set is the manager. You need to treat it like any other manager.
>
>
>
> *From:* django...@googlegroups.com [mailto:
> django...@googlegroups.com ] *On Behalf Of *Jay
> *Sent:* Monday, August 27, 2018 11:05 AM
> *To:* Django users
> *Sub
ike any other manager.
>
>
>
> *From:* django...@googlegroups.com [mailto:
> django...@googlegroups.com ] *On Behalf Of *Jay
> *Sent:* Monday, August 27, 2018 11:05 AM
> *To:* Django users
> *Subject:* Re: Printing model fields organized by category
>
>
>
&
filter(status__exact='o').order_by('due_back')
On Monday, August 27, 2018 at 11:00:57 AM UTC-4, Matthew Pava wrote:
>
> We need to see your view code. I’m assuming now that you don’t have
> category_list in your context variable that you submitted to the template.
>
>
ent in the database". Am I
missing something? I will try to experiment a little more.
On Monday, August 27, 2018 at 9:52:56 AM UTC-4, Matthew Pava wrote:
>
> Hi Jay,
>
> Firstly, I would avoid calling a model “Model.” Maybe “Product” would be
> better? It’s only because of Djan
n), but if
the table is already created, I can't find detail what to do.
If I have a table called "customer" and want to pull the data into my
template, what should I read up on to accomplish this?
Thanks
Jay
--
You received this message because you are subscribed to the Goo
that
come with HStoreField is not appearing (reference:
https://docs.djangoproject.com/en/1.8/ref/contrib/postgres/forms/ )
I cant see to figure out how to get the admin side to use the widget for
HStoreField.
Any ideas?
Thank you very much,
Jay
--
You received this message because you are
First, I want to know if its possible to search for a product on Amazon.com
and before returning the product cost, do a calculation and then spit out
the result on my website. Can anyone explain in detail for an absolute
beginner how this works? Thanks in advance!
--
You received this message
thank you, good info.
On Wednesday, 22 April 2015 05:10:48 UTC-6, mlvora.2010 wrote:
>
> Hey Jay,
>
> I am Malhar Vora from India. I may not be a proper person to answer to
> your question as I don't have much experience but since 5-6 years I am
> observing that P
Just curious if any long time python / django developers have seen an
increase in the demand/growth/popularity of these skills? I run a dev team
of python/django/aws developers building an ecommerce website and was
curious about what people think the future brings for this stack.
Continued imp
Hi All,
I'm started Pyhthon and django ,give me some suggestions and which sites
was good .help me.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
Who woulda thunk it, but switching the DATABASE_HOST to a "" blank string
(then restarting nginx and postgresql) fixed the intermittent connection
dropping for me!
On Thursday, March 13, 2008 10:11:00 AM UTC-4, Rajesh Dhawan wrote:
>
> Hi,
>
> On Mar 12, 12:31 pm, mamcxyz wrote:
> > I'm getti
,
Jay
On Thu, Apr 10, 2014 at 4:13 PM, Saransh Mehta wrote:
> I need to analyze the incoming data from the csv file and present it to
> the user in the best possible way?
> What tools do i need to use for analyzing the csv and drawing graphs etc
> out of the csv?
>
> --
> You
l(self):
amount = 0
if self.sale_head <= 0:
amount = self.number * self.estimated_weight_hd
return amount
Both versions will return a value not matter whether the test condition
evaluates to True or False. The second version assumes the default value
is 0
--
Jay Lozier
jsloz...@
ntrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'bookmarks',
)
I am assuming over here as you have kept your app name as *'bookmarks'*.
-Jay
On T
Let say for example i am going to create new app say bookmarks then i will
do something like *"python manage.py startapp bookmarks" *likewise whatever
name you have passed in place of *bookmarks.* Just place it inside
INSTALLED_APPS.
On Thu, Mar 6, 2014 at 1:06 PM, Robin Lery wrote:
> What the
virtualenv works, this for the link.
On Sunday, July 21, 2013 10:09:59 PM UTC-4, Jay Lozier wrote:
>
> I get the following error when run python manage.py runserver:
>
> OS openSUSE 12.3
> django 1.7
>
>
> boopers@linux-nss6:~/myfirstsite> python manage.py runserver
&g
virtualenv seems to work well and I can get django tamed.
On Saturday, July 20, 2013 5:55:21 PM UTC-4, Jay Lozier wrote:
>
> Using openSUSE 12.3
> python 2.7.3
> django 1.5.1 installed manually and verified
>
> When I enter "django-admin.py startproject mysite" at the
I get the following error when run python manage.py runserver:
OS openSUSE 12.3
django 1.7
boopers@linux-nss6:~/myfirstsite> python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/home/boopers/django-trunk/django/co
-pad-1.0
/usr/lib/python2.7/site-packages
/usr/lib64/python2.7/site-packages/wx-2.9.4-gtk2
On Saturday, July 20, 2013 5:55:21 PM UTC-4, Jay Lozier wrote:
>
> Using openSUSE 12.3
> python 2.7.3
> django 1.5.1 installed manually and verified
>
> When I enter "django-admin.py star
Using openSUSE 12.3
python 2.7.3
django 1.5.1 installed manually and verified
When I enter "django-admin.py startproject mysite" at the command prompt I
get the following traceback:
Traceback (most recent call last):
File "/usr/bin/django-admin.py", line 5, in
management.execute_from_command_li
Hey guys,
I have an odd problem where a post_save signal handler is getting
called from a class different than what I specified as the sender.
The code is at http://dpaste.com/hold/679348/ and also below for when
the pastebin is deleted.
I'm connecting the rating_denormalizer() function to the po
I'd go for a separate table instead, with something like
class BillingInfo(models.Model):
customer = models.OneToOneField(Customer)
billing_address = models.OneToOneField(Address)
and then just have logic in the views and templates to account for
existence/nonexistence of a gi
Hello,
does anyone know how to render only 1 radioselect in
a django template?
for now I have {{ form.options }} but it renders the whole
list. I'd like to have more control on which ones I want to render
thanks in advance
--
You received this message because you are subscribed to the Google
template, such as name and url inside
a view? I'd like to use it to differentiate between templates and
use logic to pick the template I want to render
again, Tom, thanks for your assistance
On Mon, Nov 7, 2011 at 2:04 PM, Tom Evans wrote:
> On Mon, Nov 7, 2011 at 3:59 PM, jay K.
> wr
Hello,
Is there any way I could retrieve information about a template,
such as template name, url, etc inside a view? is there built-in
object that represents the template object?
thanks
regards
--
You received this message because you are subscribed to the Google Groups
"Django users" group
Evans wrote:
> On Mon, Nov 7, 2011 at 3:09 PM, jay K.
> wrote:
> >
> > Hello
> >
> > I have a view with the following render_to_template function
> >
> > ...
> >
> > return render_to_response( 'template/template.html', {var'
Hello
I have a view with the following render_to_template function
...
return render_to_response( 'template/template.html', {var'': var},
context_instance=RequestContext(request))
...
I want the render_to_response to point to more than 1 template. So far
I've tried adding a dictionary of templ
t template)?
thanks
jay k
--
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 email to
django-users+unsubscr...@googlegroups.com.
For more
Awesome, I think that's it. Much thanks.
jay
On Sep 29, 2011, at 6:31 PM, Andres Reyes wrote:
> You could try doing your processing in the save_model method of ModelAdmin
>
> https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_model
; When in next page, you can create hidden form fields to store data you
> passed from first page, and then you can post them again in any page you
> want.
>
> 2011/9/15 jay K.
>
>
>> Hello
>>
>> I have a page where a user makes a selection
>>
>> Wh
Hello
I have a page where a user makes a selection
What I want to do is to take the user's selection to the "next page"
so I can process the user's request in a new page
How can I do that?
I know I have to use ajax (but if there is a better method please let
me know), so
how can I use ajax to
Hello,
thanks for the reply
I dont have email settings in my settings.py file? is that straightforward,
like an import statement or
something more complex?
I am using django version (1, 1, 1, 'final', 0) - that's what i got after
typing import django django.VERSION on the pyth
Hello,
I need to add a form on my django website
so far this is what i have:
in my models.py:
import statements not shown here
CONTACT_OPTIONS = (
('skype video anruf','Skype Video-
Anruf'),
('skype anruf ','Skype Anruf'),
Hello, everyone
I have a django page which loads indefinitely
some of the javascript that is supposed to come up does not appear on
the screen (while
the page is still loading), but i checked with firebugs and there are
no error messages at all
any advice would be helpful
thanks
jay k
doing it right
On Wed, Jun 15, 2011 at 1:36 PM, John Finlay wrote:
> On 6/15/11 8:59 AM, jay K. wrote:
>
> Hello,
>
> I apologize for seeming too impatient or rude, actually I'm a bit in a
> hurry because I was given a project
> and was told that it was urgent. I miscal
would be welcomed
Thanks, and again sorry for seeming rude/desperate, it was all my fault
On Wed, Jun 15, 2011 at 10:45 AM, Ian Clelland wrote:
> On Wed, Jun 15, 2011 at 7:27 AM, jay K. wrote:
>
>> Hello,
>>
>> I've posted my question before, but I believe I didn
e the {{ school|escapejs }} into a
javascript array, and use the data inside school as if it were an array
element, like map_schools[1], map_schools[3] etc
Thanks
regards,
JK
On Fri, Jun 10, 2011 at 12:21 PM, Ian Clelland wrote:
>
>
> On Fri, Jun 10, 2011 at 7:48 AM, jay K. wrote:
&
Hello,
I am not a django developer, but I have a background on html, css,
javascript, jquery and php.
I was wondering if you can help me with a question regarding django,
since I'm working on a website built on django (which was not started
by me)
I want to store a django object into a javascri
Hello,
I got a couple of fields from a model I want to use
so the models.py looks like this
*
class XZY():
latitude = models.CharField()
longitude = models.CharField(.)
zoomlevel = models.CharField()*
I want to retrieve the data inside latitude, longitude and zoomlevel
to b
Hello
I have a website with www.xyz.com/subpage
I want to change the name of the subpage
how do you do it?
thanks
--
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 unsubscr
Hello,
Currently I have 2 folders, one for german and english language
translations, respectively
The translations are inside a django.po file for each language.
I want to add a new language
How can I do it?
thanks
--
You received this message because you are subscribed to the Google Groups
nd of code
This piece of code has been generating an error when executing the *python
manage.py schemamigration myApp --initial* command in South
If the above code has doesn't do anything, I will comment it out
On Thu, Mar 31, 2011 at 5:04 PM, jay K. wrote:
>
> Hello,
>
> I&
Hello,
I've been using south to migrate a database
I followed all the commands to make the migrations in south (--initial and
--auto), all
of this, after making my desired changes in modes.py
but when I refresh my page I still get a "Error 505" messages
I've checked spelling mistakes etc but fo
that's weird, because I keep getting the same error
the field that I'm using is not custom (models.TextField)
it may be located somewhere else
On Thu, Mar 31, 2011 at 4:47 PM, Shawn Milochik wrote:
> You don't need that inspection feature for fields known to Django. Just
> custom types.
>
All I did to change my models.py, was to add the following line
*map_text = models.TextField( 'Map text', blank = True, null = False,
help_text = 'text on the subpage "map"')*
As you can see, I intend to add a new text area in my models.py
At the bottom of the page, I type this code
*from south
hello,
I've downloaded and installed south successfully to manage changes
with my models.py file
I type the following command
*python manage.py schemamigration myApp --auto*
then, get the following message
*You cannot use --auto on an app with no migrations. Try --initial.*
So I do as stated,
thanks, it works fine!!
I can't believe I spent 2 days trying to sort out my database issues
greatly appreciate your advice :)
On Thu, Mar 31, 2011 at 3:04 PM, Shawn Milochik wrote:
>
> On Mar 31, 2011 1:55 PM, "jay K." wrote:
> >
> > Thanks for the adv
Thanks for the advice,
But I am not exactly migrating databases, just modifying an existing one
On Thu, Mar 31, 2011 at 2:50 PM, Shawn Milochik wrote:
> On Thu, Mar 31, 2011 at 1:39 PM, jay K.
> wrote:
>
>
> >
> >
> > So what am I doing wrong?
> >
>
&
ge.py sql *my-application*
However, when I refresh my website, I get an *Error 505. *This error appears
only in the pages that use
the models.py file I've modified, so the rest of the website works fine.
So what am I doing wrong?
Thanks
On Thu, Mar 31, 2011 at 11:58 AM, Daniel Rosema
hello
how can i add a new text field in the django admin area
i want to create a new subpage
thanks
--
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 g
Xavier Ordoquy wrote:
>
> Le 30 mars 2011 à 21:16, jay K. a écrit :
>
> > Hello,
> >
> > How do you create a new subpage in django?
> >
> > thanks
>
> Hi,
>
> What do you mean or I'd rather ask, what are you trying to do ?
>
> Regards,
>
Hello,
How do you create a new subpage in django?
thanks
--
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 email to
django-users+unsubscr..
hi, Shawn
I finally managed to get python manage.py shell to work, by commenting
out those INSTALLED_APPS that had an issue with 'import x'
it turns out that 'import x' was the problem.
do you have any suggestions to fix 'import x'?
thanks
On Wed, M
Hello, Shawn
I type python manage.py shell in my project directory and get the following
error
Error: No module named xx
regards
On Wed, Mar 30, 2011 at 11:52 AM, Shawn Milochik wrote:
> Check the permissions on manage.py. I'm guessing it's not executable.
>
> Either use chmod +x on manag
Hello,
I am following the tutorial at
http://south.aeracode.org/docs/installation.html#installation-configure in
order
to install South.
I've installed it successfully and modified INSTALLED_APPS so
it includes 'south', in the settings.py
now I execute the command: ./manage.py shell inside my cu
Hello,
I've been struggling for quite a white with this
whenever i change my models.py file by adding a new text area
I get a 'error 500 internal server error'
besides i keep getting an error whenever i try to syncdb my database
can anyone please explain what i'm doing wrong?
thanks
--
You
concepts in Django.
Happy coding!
Jay
On Sat, Apr 17, 2010 at 3:27 PM, codecub wrote:
> that's really unhelpful dude, i read through that and it doesnt even
> help at all thats for software/applications not websites
>
> --
> You received this message because you are subs
, Jay
On Jan 7, 6:50 pm, wormser17 wrote:
> Hello. First, some quick context about my approach (I am not a
> programmer):
>
> This is the directory where I installed Django: /Library/Python/2.6/
> site-packages/django
> This is my project directory: /Users/mlooby/Sites/mysite
&g
27;,
'cc_expire_dt', 'cc_closed_dt', 'cc_frozen_dt', 'cc_card_printed']
Thanks!
Jay
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to t
I do not quite follow your statement. Do you mean redirect
(request.get_full_path())?
On Sep 30, 10:47 pm, "bax...@gretschpages.com"
wrote:
> I'm passing through a testcookie function and would like to keep the
> request.GET keys
>
> so if the original URL is /testcookie/?foo=1&bar=2
>
> Whe
Use the aggregation way:
user.report_set.annotate(count = Count('report_set')).filter(count =
1)
On Sep 29, 10:39 pm, luismmontielg wrote:
> yeah, something like that is what I want, but to me, that is not the
> best way of doing it ...
> Maybe there's a simpler way?
>
> thanks in advance
>
> On
In Django template, you can make methed call. So you can pass the
auther object to the template, then
{% for book in auther.books.all %}
{% for section in book.sections.all %}
{% end for %}
{% endfor %}
The ordering is using the definition in the Model Meta class.
fetch. (values(), only(), .etc.) I cannot find
any material to make it smarter. So I wonder if I missed something or
it is just a Django bug as to_python is not called?
BRs/Jay
On 9月25日, 上午10时39分, "jay.sh...@gmail.com" wrote:
> Hi there,
>
> I have a question on customize the
Sorry, nevermind. I finally figured this out right after I posted
this.
On Aug 19, 12:48 pm, Jay wrote:
> First off, I'm using Django 1.1.
>
> I've been having problems getting my custom authentication backend to
> work, specifically in the "admin" site.
>
&
sword.split('$')
return (getPHash(raw_pass , salt , False) == hash)
def __str__(self):
return self.email
class Meta:
db_table = 'users'
ordering = ['email' , 'username' , 'date_joined']
verbose_name_plural = 'users'
.
I have an Order model and a Payment model (which FK's to Order as
"payments"). I have a handler for post_delete on Payment which sends
a custom signal which may do some updating on Order. The problem I'm
seeing is that when I delete a Payment, the custom signal handler can
still query for the de
mplish the above with a highly inefficient nested
loop:
Template code:
==
{% for item in list1 %}
{{ item }}:
{% for item2 in list2 %}
{% ifequal forloop.counter0 forloop.parentloop.counter0 %}
{{ item2 }}
{% endifequal %}
{% endfor %}
{% endfor %}
=
1 - 100 of 501 matches
Mail list logo