Thank You
On Friday, 17 January 2020 16:36:41 UTC+1, Suraj Thapa FC wrote:
>
> Use django orm
>
> On Fri, 17 Jan 2020, 8:48 pm Stephen, >
> wrote:
>
>> How can I join two database tables together please?. I'm trying to
>> display every object in a table that is linked to an object in another
>>
Use django orm
On Fri, 17 Jan 2020, 8:48 pm Stephen, wrote:
> How can I join two database tables together please?. I'm trying to display
> every object in a table that is linked to an object in another table. I
> can't seem to get it to work
>
> --
> You received this message because you are sub
How can I join two database tables together please?. I'm trying to display
every object in a table that is linked to an object in another table. I
can't seem to get it to work
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from
Please reply with the full error message. Also, I am pretty sure that
when pip fails to build something it also says "Full log message
available in /foo/bar/quuz.log". If it does, please also send the
contents of that log file.
Cheers
Tom
On Fri, Dec 15, 2017 at 12:41 AM, Aaron wrote:
> I wasn'
I wasn't sure where to ask this question and then I found this place. I've
got a MacBook running mac OS High Sierra. I've been trying to install
Django for a while. Whenever I try, I get an error that says "Command
"python setup.py egg_info" failed with error code 1 in
/private/var/folders/8y/
er 09, 2011 11:18 AM
To: django-users@googlegroups.com
Subject: Re: rendering CSV in response; need a little help
On Fri, Dec 9, 2011 at 4:12 PM, Sells, Fred
wrote:
> I'm getting an http request from another server in our system and I need
> to respond using a csv format. I've seen th
If you have a dataset that is too large to fit in memory comfortably,
the ability to pass a generator to an httpresponse means you can break
it up into multiple smaller queries (outside the template system
anyway):
def queryset_to_csv(queryset,delimiter=',',steps=500):
""" generator for large
https://github.com/joshourisman/django-tablib
--
Kenneth Reitz
On Friday, December 9, 2011 at 8:33 AM, Alen Mujezinovic wrote:
> Hey
>
> Here's what I use to add CSV export to the admin:
>
> https://gist.github.com/46e6d19e6e08faefb476
> --
> You received this message because you are subsc
Hey
Here's what I use to add CSV export to the admin:
https://gist.github.com/46e6d19e6e08faefb476
--
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/-/3dDsN7e
On Fri, Dec 9, 2011 at 4:12 PM, Sells, Fred
wrote:
> I'm getting an http request from another server in our system and I need
> to respond using a csv format. I've seen the example in the docs where
> the template looks like this:
>
> {% for row in data %}"{{ row.0|addslashes }}", "{{ row.1|addsl
I'm getting an http request from another server in our system and I need
to respond using a csv format. I've seen the example in the docs where
the template looks like this:
{% for row in data %}"{{ row.0|addslashes }}", "{{ row.1|addslashes }}",
"{{ row.2|addslashes }}", "{{ row.3|addslashes }}"
https://code.djangoproject.com/wiki/UsingTheMailingList
On Fri, Jul 22, 2011 at 11:23 AM, Derick Felsman <
derick.fels...@cbsinteractive.com> wrote:
> bump
>
> On Jul 22, 12:15 am, Derick Felsman
> wrote:
> > extending from the example found here
> >
> > https://docs.djangoproject.com/en/dev/top
bump
On Jul 22, 12:15 am, Derick Felsman
wrote:
> extending from the example found here
>
> https://docs.djangoproject.com/en/dev/topics/db/queries/
>
> what if i wanted to create a url where i would pass in a list of
> authors (not necessarily a list but an unspecified number of different
> auth
extending from the example found here
https://docs.djangoproject.com/en/dev/topics/db/queries/
what if i wanted to create a url where i would pass in a list of
authors (not necessarily a list but an unspecified number of different
authors) and then query for an entry that has all of the specified
Thanks, Shawn. That was the first question I had. There will likely be
more to follow but I didn't want to chase the wrong solution from the
start.
On Mar 15, 3:02 pm, Shawn Milochik wrote:
> You can use formsets, which can be passed querysets upon
> initialization. If this doesn't help, feel fre
You can use formsets, which can be passed querysets upon
initialization. If this doesn't help, feel free to use a more specific
question.
Shawn
--
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@go
I am working on an election application. I am at the point where I
would like to start putting together the data entry point for the app
and would like a little advice on how to proceed. Here is a
(simplified) version of my models:
class Candidate(models.Model):
f_name = models.CharField()
ok
thank u all
i solved my problem using a request context
;)
On 9 mar, 14:40, Briel wrote:
> The problem you are seeing regarding the link i mentioned briefly in
> my last post. Django does auto escapingbe default of all template vars
> and values. In your case that means that you see the html
The problem you are seeing regarding the link i mentioned briefly in
my last post. Django does auto escapingbe default of all template vars
and values. In your case that means that you see the html you wrote
because the <>" has been converted to a code that will display the
signs but disable the c
ok briel, maybe i should explain myself better
you're right about the function with that innecesary 'request'
object... but i'd need it for any other function -yet to be
implemented
-by the way, i use the shortcut render_to_response
regarding the html stuff, with the function defined early if i m
Hi and welcome to django.
In regards to question 1, it looks like you are missing something. The
request object, that you have as parameter in your function, is used
in the views.py file. The object has a lot of the info that you need,
like the user, the post data if any ect. If you want to make
ok alex -and thank for your so quick assistance
let's see if i get it -i guess not, because have an syntax error
having this in settings.py file:
# --
...
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.auth',
'django.core.context_processors.debug',
On Mon, Mar 9, 2009 at 11:11 AM, Julián C. Pérez wrote:
>
> hi everyone from colimbia
> i'm new on django... so far, i love it... i'm very used to php, but
> the solution with django/python is just awesome
> i have started a project and i've been catching up with the basics...
> right now i have
hi everyone from colimbia
i'm new on django... so far, i love it... i'm very used to php, but
the solution with django/python is just awesome
i have started a project and i've been catching up with the basics...
right now i have 2 doubts...
1. i created a file called 'globalValues.py' in the root
Thanks Daniel and Scott for the replies. It certainly has given me a
better sense of how to implement something like this in Django, as
well as an overall better understanding of Django in general.
This will certainly be a fun project and I can't wait to get started
on it as I learn more about t
Bryan, here's one way that you might approach it:
1. From a model perspective, you probably want to have a model like
Account or Person or Blog that corresponds to the first component of the URL
path. Then you can have a model like BlogPost or somesuch (maybe other
models like BlogSta
Hey Bryan,
> So basically when I roll it out, the website would have no blogs on
> it, just a front page welcoming me and possibly displaying some
> statistics or news on it and allowing register/login. So if I were
> the first to create an account, I would gain access to
> www.mysite.com/bbeau
Hey Daniel,
Thanks for the reply. ... Duh! I don't know why I didn't think of
that. There are so many foreign aspects of this to me (yes I come
from a mod_perl, php background).
I can give some more information to hopefully help me grasp this just
that bit more.
Basically I am creating my own
Hi Bryan,
maybe I don't quite get what you are trying to do.
URLs like www.mysite.com/Foo/ don't relate to filesystem paths
(like /home/django/Foo). They are mapped to python functions. This might
confuse you if you come from a PHP background. Usually you don't clone
project, apps or any kind of
Hello all,
I just recently started playing around with django, and I am
interested in using it to create a site I have in mind. I would
appreciate any help in understanding if I have wrapped my head around
the idea of projects and apps properly.
Basically, the site would have a main page that d
Basically, as it stands today, Django is not very good at uploading
large files because it holds the whole file in memory while it uploads
it. There's no simple answer to the problem, although if you search
the group for "uploading large files" you should find some more info.
On Mar 7, 12:07 pm,
Thanks a lot Carole and Todd your posts have been so helpful to me,
I've managed to upload a file !!!, but I have a little problem now, I
would like to see if any of you or somebody else who reads this can
help me, the issue is : I can upload small files good, but when it
comes to bigger files, le
I am hoping some of you can give me a little start as to where I can
read how to alter some of the admin pages.
I have a a Person class in my model and I want to change both the view
of people plus I want to change the form page where people are added
and deleted.
Any links or examples or tutori
I know... but currently I'm looking how secure the things...
--~--~-~--~~~---~--~~
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 fr
On 29 Jun 2006, at 5:03 am, mamcxyz wrote:
>
> I forgot to add this details:
>
> django is installed in /root/django_src
>
> The project is in
>
> /root/vulcano/jhonWeb/
This is a bit off-topic, but you shouldn't really run things as root,
if at all possible.
Cheers,
David
--
David Reynol
Nevermind, is the "feature" of Linux of case-sensitivity
Now, I'm working in serve the media files...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to d
How I know? The error is (sorry, I forget the error):
TemplateSyntaxError at /buscar/
Template 'layoutinternal.html' cannot be extended, because it doesn't
exist
Request Method: GET
Request URL:http://204.14.107.36/buscar/
Exception Type: TemplateSyntaxError
Exception Value:
On 6/28/06, mamcxyz <[EMAIL PROTECTED]> wrote:
>
> I forgot to add this details:
>
> django is installed in /root/django_src
>
> The project is in
>
> /root/vulcano/jhonWeb/
Surface-level: have you ensured that the user lighty/fcgi is running
under has access to the template dir?
--~--~-
I forgot to add this details:
django is installed in /root/django_src
The project is in
/root/vulcano/jhonWeb/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send ema
After 2 weeks I was able to setup django under CentOS 3 ;)
Now, I'm so close... I can see the login screen of admin but the admin
media files and my media and the templates are not loading :(
This is under lighttpd with the lastest svn code with the new fastcgi:
lighttp:
server.document-root
A perfect explanation
>
> s1 = set([obj.id for obj in
> item1.sub_item_set.filter(options__name__exact="Small")])
> s2 = set([obj.id for obj in
> item1.sub_item_set.filter(options__name__exact="Blue")])
>
> smallAndBlueIDs = s1.intersection(s2)
> smallAndBlueSubItems = Sub_Item.objects.in_bulk(lis
Chris,
If I understand your problem, its that you want to do an "and" across
multiple rows, which is not a simple query (and I'm not sure how to do
in the model API). To be more clear, your Sub_Item table relates
through a many-to-many relationship to ObjectItem so the SQL to get all
Sub_Items wi
> Try going into the interactive interpretter (python manage.py shell)
> and importing your models, then try:
>
> query=item1.sub_item_set.filter(options__name__exact="Small").filter(options__name__exact="Blue")
>
> then inspect the resulting SQL query components by executing:
>
> print query._ge
Chris Moffitt wrote:
> If I try this:
>item1.sub_item_set.filter(options__name__exact="Small").filter(options__name__exact="Blue")
> I get an empty list.
>
> I've tried this using Q objects and some other things but I can't get it
> to work. Anyone have ideas of what I'm doing wrong?
>
Try goin
>
> Any chance that you're having a case problem? __exact is case
> sensitive, while __iexact is case insensitive.
>
Thanks for the thought. I get the same behavior with iexact. If I run
any of the 2 queries by themeselves, they return results. When chained
together they do not.
I also forgot
On 6/2/06, Chris Moffitt <[EMAIL PROTECTED]> wrote:
>
> I feel like this should be simple but I'm struggling getting this to work
> like I think it should.
>
> Here's the relevant model parts:
>
> class Item(models.Model):
> category = models.ForeignKey(Category)
> verbose_name = models.Ch
I feel like this should be simple but I'm struggling getting this to work
like I think it should.
Here's the relevant model parts:
class Item(models.Model):
category = models.ForeignKey(Category)
verbose_name = models.CharField("Full Name", maxlength=255)
class OptionItem(models.Model):
47 matches
Mail list logo