I got Anthony's code to work by adding the appropriate imports:
from django.contrib.auth.models import User
from django.contrib.auth import get_backends
from django.contrib.auth import login
Thanks very much!!
On Wed, Sep 5, 2012 at 1:06 PM, Larry Martell wrote:
> Thanks - but now I
/stackoverflow.com/questions/5606083/how-to-set-and-retrieve-cookie-in-http-header-in-python
>
> Here's some docs on the how to make the CSRF System happy:
> https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#how-it-works
>
> On Wed, Sep 5, 2012 at 2:38 PM, Larry Martell
>
is Mullins
> wrote:
>>
>> No problem! Alternatively, you may have some luck with Selenium ...
>> although I have no experience here and am not sure if it can be made to
>> record times or any other indication of performance.
>> http://seleniumhq.org/
>>
>>
On Sun, Sep 9, 2012 at 2:18 PM, djangohelp wrote:
> I install it and then in the terminal when I type python -c "import django;
> print(django.get_version())"
>
>
> it says
>
> Traceback (most recent call last):
> File "", line 1, in
> ImportError: No module named django
> shayan-afridis-imac:~
On Sun, Sep 9, 2012 at 3:41 PM, Shayan Afridi
wrote:
> Interesting. I'm doing it on my PC now, and still getting the same problem.
>
> Then I saw your email:
>
> Here's what I get when I print sys.path. (django's not there)
>
print sys.path
> ['', 'C:\\Windows\\system32\\python27.zip', 'C:\\P
On my Mac, I changed a template, and the change was picked up, no
problem. I checked my change into git, went to another machine, a
CentOS box, pulled the change down, but django is not picking it up.
I've tried everything I can think of - bounced the server, restarted
the browser, cleared the cach
On Wed, Sep 12, 2012 at 11:56 AM, Thomas Lockhart
wrote:
> On 9/12/12 8:27 AM, Larry Martell wrote:
>>
>> On my Mac, I changed a template, and the change was picked up, no
>> problem. I checked my change into git, went to another machine, a
>> CentOS box, pulled the cha
because your template actually
> isn't different from the older one.
>
> You should be able to do that using pdb and the Django code base :-)
I may resort to that.
> There might be a quicker way though, I'll have a look at it.
>
> Thomas
>
> On Sep 12, 2012 5:5
you don't find anything, it's probably because your template actually
>> isn't different from the older one.
>>
>> You should be able to do that using pdb and the Django code base :-)
>> There might be a quicker way though, I'll have a look at it.
>
On Thu, Sep 13, 2012 at 7:11 AM, Larry Martell wrote:
> On Wed, Sep 12, 2012 at 11:39 AM, Thomas Orozco wrote:
>> Can you being up a manage.py shell and load the template from there to
>> identify where's Django is pulling the template from?
>
> I'm trying
On Thu, Sep 13, 2012 at 12:51 PM, Dennis Lee Bieber
wrote:
> On Thu, 13 Sep 2012 10:52:44 -0600, Larry Martell
> declaimed the following in
> gmane.comp.python.django.user:
>
>
>> So by stepping through a lot of code, I finally figured this out. The
>> new template
On Fri, Sep 21, 2012 at 10:27 AM, Brian Patterson wrote:
> Hi Everyone,
> I'm very new to Django and just trying to explore the basics. I'm having a
> problem with the url pattern matching. If i go to site:
> http://mysite:8000/paperforms/
>
> I get the following error:
>
> Using the URLconf def
I have a template that creates a table that has clickable links. It
also loads a bunch of images associated with each row in the table.
Through javascript events, when the user mouses over certain fields,
the images are displayed or hidden. Initially, all the images are not
displayed
When the page
e to django, may be SO or some other
> js forums / groups would be a better place to post this?
>
>
> -Original message-
> From: Larry Martell
> Sent: 29/09/2012, 1:18 AM
> To: django-users@googlegroups.com
> Subject: splitting up image loads from rest of page
>
On Fri, Sep 28, 2012 at 1:48 PM, Larry Martell wrote:
> I have a template that creates a table that has clickable links. It
> also loads a bunch of images associated with each row in the table.
> Through javascript events, when the user mouses over certain fields,
> the images are
In an app I've inherited, there are forms generated with {{ form.as_p
}} in the template. This generates HTML like this, for example:
Group
12S
13S
22SOI
Is there some way to have the form label be a href?
--
You received this message because you are subscribed to the Google Groups
"D
We have middleware that records the last url the user has visited:
class LastSiteUrl(object):
def is_admin_url(self, url):
if re.search('^(http:\/\/.*){0,1}\/admin\/', url) is None: return(False)
else: return(True)
def process_request(self, request):
if self.is_a
Is there some way to use manage.py to create a table and load data
into it (where the data is contained in the models.py)?
I have a client that wants to have some data contained in the code (so
it's part of the code repository), and when they do the initial
syncdb, have that data loaded into one o
Thanks! I knew there had to be a way!
On Thu, Oct 4, 2012 at 10:28 AM, Jonathan Baker
wrote:
> initial_data sounds like what you're looking for:
> https://docs.djangoproject.com/en/dev/howto/initial-data/
>
> On Thu, Oct 4, 2012 at 10:26 AM, Larry Martell
> wrote:
>>
&
On Fri, Oct 5, 2012 at 10:57 AM, Stefano T
wrote:
> Hi all.
> i'm new to django and i'm facing a problem i can't solve so far.
> Basically, when i log in in the admin part, every operation i do it
> ask me for the login. doesn't matter which browser i user, it's always
> the same.
> at the beginni
I added a new model and then ran syncdb. It failed with:
django.db.utils.IntegrityError: (1062, "Duplicate entry
'1-add_permission' for key 'content_type_id'")
I removed the new model and ran it again and got the same error. I've
run syncdb many times on this same machine before with no issues.
On Tue, Oct 9, 2012 at 5:50 PM, Larry Martell wrote:
> I added a new model and then ran syncdb. It failed with:
>
> django.db.utils.IntegrityError: (1062, "Duplicate entry
> '1-add_permission' for key 'content_type_id'")
>
>
> I removed the new
On Tue, Oct 9, 2012 at 6:22 PM, Larry Martell wrote:
> On Tue, Oct 9, 2012 at 5:50 PM, Larry Martell wrote:
>> I added a new model and then ran syncdb. It failed with:
>>
>> django.db.utils.IntegrityError: (1062, "Duplicate entry
>> '1-add_permission
ectly by creating the model, syncing the DB, inserting some
> dummy records, running 'dumpdata' against the table, and then copying the
> printed JSON into initial_data.json so that next time you build your data is
> all there.
>
>
> On Thu, Oct 4, 2012 at 10:31 AM, La
On Thu, Oct 11, 2012 at 1:37 AM, Joseph Wayodi wrote:
> On Thu, Oct 11, 2012 at 2:23 AM, Larry Martell
> wrote:
>> I'm having trouble getting django to read my fixture file. I created it in
>> yaml:
>>
>> - model: cdsem.fields
>>pk: 1
On Fri, Oct 12, 2012 at 3:44 AM, wrote:
> Hi Larry,
> Do you have PyYAML installed? If not install it first and retry or
> alternatively you could just serialize your fixture in (my personal favorite)
> JSON.
The client decide to use XML.
--
You received this message because you are subscrib
On Thu, Oct 11, 2012 at 4:51 AM, Larry Martell wrote:
> On Thu, Oct 11, 2012 at 1:37 AM, Joseph Wayodi wrote:
>> On Thu, Oct 11, 2012 at 2:23 AM, Larry Martell
>> wrote:
>>> I'm having trouble getting django to read my fixture file. I created it in
>>&g
On Fri, Oct 12, 2012 at 12:22 PM, Kurtis Mullins
wrote:
> On Fri, Oct 12, 2012 at 2:09 PM, Larry Martell
> wrote:
>>
>>
>> So my client decided to use xml. I created the file and put it in
>> fixtures/initial_data.xml. On my development machine, which is a Mac,
>
ngo/blob/master/django/core/management/commands/syncdb.py
>>
>>
>> On Fri, Oct 12, 2012 at 3:30 PM, Larry Martell
>> wrote:
>>>
>>> On Fri, Oct 12, 2012 at 12:22 PM, Kurtis Mullins
>>> wrote:
>>> > On Fri, Oct 12, 2012 at 2:09 PM,
tor/fixtures. The reason it worked on my devel
system is that had I FIXTURE_DIRS set in my setting file, back from
when I was testing with the YAML files.
In any case, I'll just move the file to core/data/fixtures.
On Sat, Oct 13, 2012 at 2:28 PM, Larry Martell wrote:
> Thanks Kurtis. That
I'm trying to set up the password reset stuff, following what I read at:
https://docs.djangoproject.com/en/dev/ref/contrib/admin/#adding-a-password-reset-feature
When I click on the 'Reset my password' button, I get:
SMTPServerDisconnected at /admin/password_reset/
please run connect() first
I
gt; pick up mail from a mailbox.
>
> Yours,
> Russ Magee %-)
>
> On Wed, Oct 17, 2012 at 8:28 PM, Larry Martell
> >
> wrote:
> > I'm trying to set up the password reset stuff, following what I read at:
> >
> >
> https://do
On Sunday, October 21, 2012, zweb wrote:
>
> I am using Django 1.3.1
>
> I want to know in my application how much time is taken by a) database
> access b) creation of XML c) other parts of code. What would be some good
> tools to profile my application?
>
> The code to be profiled is in django vi
I have set up the password reset feature, but the email that gets sent
comes in plain text - it does not get rendered in HTML. I googled this
and found this on SO:
http://stackoverflow.com/questions/13285976/python-django-email-template-is-not-rendered-shows-html-tags-and-doesnt-conve/13286215#132
ing to go nuts, since the
client is (fairly) happy. The one remaining issue is that the reset
email is not getting rendered in HTML (I send a separate post about
that). Thanks again Russell for all your help!
On Thu, Oct 18, 2012 at 1:44 AM, Larry Martell wrote:
>
> Thanks for the info. I&
On Wed, Nov 21, 2012 at 11:04 AM, Tom Evans wrote:
> On Wed, Nov 21, 2012 at 3:27 PM, larry.mart...@gmail.com
> wrote:
>> On Tuesday, November 2, 2010 5:50:49 AM UTC-4, Tom Evans wrote:
>>>
>>> On Tue, Nov 2, 2010 at 9:07 AM, andy wrote:
>>> > I recently tried to send the following in a test pas
This is probably very simple, but I've never run into this before and
googling has not revealed anything.
I have these 2 models:
class Category(models.Model):
class Meta: db_table = 'data_category'
name = models.CharField(max_length=20, unique=True, db_index=True)
class Tool(models.Model
On Thu, Nov 29, 2012 at 10:43 AM, Bill Freeman wrote:
>
>
> On Thu, Nov 29, 2012 at 9:10 AM, Larry Martell
> wrote:
>>
>> This is probably very simple, but I've never run into this before and
>> googling has not revealed anything.
>>
>> I have th
On Thu, Nov 29, 2012 at 12:34 PM, Bill Freeman wrote:
>
>
> On Thu, Nov 29, 2012 at 12:30 PM, Larry Martell
> wrote:
>>
>> On Thu, Nov 29, 2012 at 10:43 AM, Bill Freeman wrote:
>> >
>> >
>> > On Thu, Nov 29, 2012 at 9:10 AM, Larry Martell
&
On Sunday, December 2, 2012, David Brotman wrote:
> Hi:
>
> I am really new to django and I am going thru the online tutorial (polls)
> app and I got to the point in the tutorial where I enter the command:
>
> python manage.py sql polls
>
> Nothing happens. No error message or anything else displa
On Mon, Dec 3, 2012 at 7:31 AM, Loai Ghoraba wrote:
> Hi
>
> I have this in my urls.py
>
> url(r'^accounts/login/$', login,name="accounts-login")
>
> and in a template base.html
> login
>
> And when I try to open the site, this error is raised: Template syntax
> error: Could not parse the rem
On Thu, Dec 6, 2012 at 6:18 AM, Francis Devereux wrote:
> Hi,
>
> I currently have the following code in one of my migrations:
>
> cursor = connection.cursor()
> cursor.execute('''UPDATE travelbox_accommodationimage SET file =
> CONCAT('travelbox/accommodation/', url)''')
> transactio
On Wed, Jan 2, 2013 at 4:29 AM, George Lund wrote:
> I'm trying to bulk-delete several million rows from my database.
>
> The docs for Django 1.3 say "this will, whenever possible, be executed
> purely in SQL". A pure-SQL delete is what I want in this case, so that's
> fine.
>
> However, the code
Berlin, New York?
On Wed, Jan 9, 2013 at 9:26 AM,
wrote:
> My client is a start-up located in the start-up hub of Berlin. The modern
> offices are within the heart of the city centre. The team environment is
> friendly, relaxed and working there has a real start-up feel.
>
> They are looking for
On Fri, Jan 25, 2013 at 2:09 AM, arm wrote:
>
> Hi,
>
> I'm trying to figure out the regular expressions that will match any
> number and punctuation and chars like +,#,§ etc . Any advice?
http://www.regular-expressions.info/charclass.html
--
You received this message because you are subscribe
On Thu, Jan 31, 2013 at 8:15 AM, laxmikant ratnaparkhi
wrote:
> Hello Everybody,
> I have an interview scheduled on monday with google. So can you
> anybody have an related information or any experience. Please help me what
> would be asked for this interview.
> I have 2 years of exp in py
On Thu, Jan 31, 2013 at 10:48 AM, Tom Evans wrote:
> On Thu, Jan 31, 2013 at 5:25 PM, Larry Martell
> wrote:
>> Books have been written about interviewing at google. Google
>> 'interviewing at google' and you'll find a plethora of stories. After
>> rea
This is something I found back in 07 when I was offered a chance to
interview there. I searched for it again, and there are links to it,
but they don't appear to work. My situation was the strangely similar
to Peter's - I also got an unsolicited call from someone at google who
said they saw my resu
Anyone know of a good plugin or javascript/jQuery package that I can
use for a dialog box for navigating and selecting files (just like
when you select "Open File ..." for example)?
TIA!
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubs
On Wed, Mar 13, 2013 at 6:09 PM, Larry Martell wrote:
> Anyone know of a good plugin or javascript/jQuery package that I can
> use for a dialog box for navigating and selecting files (just like
> when you select "Open File ..." for example)?
I didn't get any replies,
On Thu, Mar 14, 2013 at 3:43 PM, Shawn Milochik wrote:
> If you have an HTML file input field in your template you get one
> automatically from your browser.
Thanks! Do you know how to change the text displayed in the button?
It's displaying 'Choose File' and I want it to have something else.
Als
On Thu, Mar 14, 2013 at 4:27 PM, Shawn Milochik wrote:
> On Thu, Mar 14, 2013 at 4:54 PM, Larry Martell
> wrote:
>> On Thu, Mar 14, 2013 at 3:43 PM, Shawn Milochik wrote:
>>> If you have an HTML file input field in your template you get one
>>> automatically from
On Thu, Mar 14, 2013 at 4:44 PM, Shawn Milochik wrote:
> You can certainly upload a file, then parse it or whatever. I'm just
> saying you can't just grab a directory listing from the user.
>
> To upload multiple files, you may be able to just add "multiple" to
> your file upload element. A quick
On Thu, Mar 14, 2013 at 5:08 PM, Shawn Milochik wrote:
> On Thu, Mar 14, 2013 at 6:03 PM, Larry Martell
> wrote:
>>
>> I have been googing this for 2 days and trying lots of different
>> things, without success. I really appreciate your help - I've made
>> mor
On Thu, Mar 14, 2013 at 5:08 PM, Shawn Milochik wrote:
> On Thu, Mar 14, 2013 at 6:03 PM, Larry Martell
> wrote:
>>
>> I have been googing this for 2 days and trying lots of different
>> things, without success. I really appreciate your help - I've made
>> mor
On Fri, Mar 15, 2013 at 11:06 AM, Javier Guerra Giraldez
wrote:
> On Fri, Mar 15, 2013 at 10:15 AM, Tom Evans wrote:
>> I'm
>> fairly certain that should not throw any change
>> events or make the name of the file available to JS, for reasons of
>> security.
>
> it does generate change events, e
On Fri, Mar 15, 2013 at 2:15 PM, Sanjay Bhangar wrote:
> Hey,
>
> I believe there are some jquery plugins by now to handle
> asynchronously uploading multiple files, and they should contain some
> examples of how to handle them on the server side - this is one thing
> I found on github -
> https:/
On Fri, Mar 15, 2013 at 6:43 PM, Larry Martell wrote:
> On Thu, Mar 14, 2013 at 5:08 PM, Shawn Milochik wrote:
>> On Thu, Mar 14, 2013 at 6:03 PM, Larry Martell
>> wrote:
>>>
>>> I have been googing this for 2 days and trying lots of different
>>> th
On Sat, Mar 16, 2013 at 2:47 PM, Sanjay Bhangar wrote:
> On Sun, Mar 17, 2013 at 12:00 AM, Larry Martell
> wrote:
>>
>> Is there a way for me to get the path on the local computer of the
>> files? In request.FILES all I see are the base names.
>>
>
> No.
2 questions about saving a file on the user's computer.
Is there a way to trigger a 'save as' dialog box? I've read
https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ which says
to use the Content-disposition header to trigger the save as. I've
done this, but I don't get a save as dialog
On Tue, Mar 19, 2013 at 7:07 PM, Tim Chase
wrote:
> On 2013-03-19 18:42, Larry Martell wrote:
>> https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ which
>> says to use the Content-disposition header to trigger the save as.
>> I've done this, but I don'
On Wed, Mar 20, 2013 at 2:50 AM, Branko Majic wrote:
> On Tue, 19 Mar 2013 19:27:33 -0600
> Larry Martell wrote:
>
>> On Tue, Mar 19, 2013 at 7:07 PM, Tim Chase
>> wrote:
>> > On 2013-03-19 18:42, Larry Martell wrote:
>> >> https://docs.djangoproj
I have these tables:
class Defect(models.Model):
name = models.CharField(max_length=100)
class Klarf(models.Model):
dr4i = models.ForeignKey(DR4i, db_index=True)
defect = models.ForeignKey(Defect)
xrel = models.FloatField(null=True)
yrel = models.FloatField(null=True)
I have
On Wed, Mar 20, 2013 at 6:56 AM, Branko Majic wrote:
> On Wed, 20 Mar 2013 06:48:26 -0600
> Larry Martell wrote:
>
>> karlfs = Klarf.objects.filter(dr4i_id=dr4i.id).order_by(defect__name)
>>
>> But I'm getting NameError: "global name 'defect__nam
On Wed, Mar 20, 2013 at 5:34 AM, Tom Evans wrote:
> On Wed, Mar 20, 2013 at 11:28 AM, Larry Martell
> wrote:
>> Yes, I have convinced them to not require this. Now my issue is how to
>> cause a file to be saved and to also render a template. When I return
>> this
On Wed, Mar 20, 2013 at 2:27 PM, Felipe Prenholato wrote:
> When page loads (document.ready), do a ajax call to a view that returns PDF
> file.
How is a PDF file involved here?
> 2013/3/20 Larry Martell
>>
>> On Wed, Mar 20, 2013 at 5:34 AM, Tom Evans
>> wrote:
&
uter, and I also want my template rendered.
> 2013/3/20 Larry Martell
>>
>> On Wed, Mar 20, 2013 at 2:27 PM, Felipe Prenholato
>> wrote:
>> > When page loads (document.ready), do a ajax call to a view that returns
>> > PDF
>> > file.
>>
>>
On Wed, Mar 20, 2013 at 6:26 PM, Felipe Coelho wrote:
>> 2013/3/20 Larry Martell
>>
>>
>> I'm not outputting any PDF. I have a zip file I want to download to
>> the user's computer, and I also want my template rendered.
>
>
> That means you hav
On Tue, Mar 26, 2013 at 6:48 AM, Larry Martell wrote:
> On Wed, Mar 20, 2013 at 6:26 PM, Felipe Coelho wrote:
>>> 2013/3/20 Larry Martell
>>>
>>>
>>> I'm not outputting any PDF. I have a zip file I want to download to
>>> the user's com
I have some existing code that calls values_list on a queryset. I need
to add something using extra to this queryset. If I call extra before
values_list the extra stuff is gone from the query after the
values_list. If I call extra after the call to values_list it seems to
have to effect - the extra
cipe`.`id`) INNER JOIN `data_lot` ON
(`data_cst`.`lot_id` = `data_lot`.`id`) WHERE (`data_cst`.`date_time`
<= 2013-03-26 23:59:59 AND `data_cst`.`date_time` >= 2010-03-26
00:00:00 ) ORDER BY `data_cst`.`date_time` DESC
>
>
> Cheers,
> AT
>
> On Tue, Mar 26, 2013 at 7:51 PM, Larry Mar
On Tue, Mar 26, 2013 at 4:51 PM, Larry Martell wrote:
> I have some existing code that calls values_list on a queryset. I need
> to add something using extra to this queryset. If I call extra before
> values_list the extra stuff is gone from the query after the
> values_list. If
On Tue, Mar 26, 2013 at 8:14 PM, Larry Martell wrote:
> On Tue, Mar 26, 2013 at 4:51 PM, Larry Martell
> wrote:
>> I have some existing code that calls values_list on a queryset. I need
>> to add something using extra to this queryset. If I call extra before
>> values
On Wed, Mar 27, 2013 at 6:52 AM, Tom Evans wrote:
> On Wed, Mar 27, 2013 at 12:38 PM, Larry Martell
> wrote:
>> Ignore my last message - I was seriously sleep deprive3d when I made
>> it. But my original question remains - how can I use values_list and
>> extra on sa
On Wed, Mar 27, 2013 at 7:38 AM, Karen Tracey wrote:
>
> On Wed, Mar 27, 2013 at 9:19 AM, Larry Martell
> wrote:
>>
>> Here's a very simple example showing it's not working for me
>>
>> (Pdb) CST.objects.all().extra(select={'ep':
>>
On Sun, Apr 7, 2013 at 1:35 PM, Johannes wrote:
> I get again to different results.
> the shell accesses the settings.py while from the testserver the
> settings.pyc is accessed. After I deleted the pyc-file. the testserver
> uses the settings.py too.
> When and in which cases the pyc-file gets
On Mon, Apr 8, 2013 at 9:02 AM, frocco wrote:
> on registration, login django is asking for uppercase and special chars for
> password.
> how do I tell django to allow basic passwords?
>
> My site is live and I am having issues
This may help you: https://github.com/dstufft/django-passwords
--
I am passing a list of dictionaries to my template. In the template
language I can do this and it works as expected:
{% for row in images %}
{% endfor %}
But I need to process this data in jQuery. If I pass images into a
function like this:
my_func({{ images
I appreciate the suggestion, but using a hidden field sounds very
kludgy. Is there no other way?
On Mon, Apr 8, 2013 at 6:01 PM, Nikolas Stevenson-Molnar
wrote:
> Injecting data into a template can be tricky. I would recommend doing
> two things:
>
> 1) Serialize your data to JSON in your view fi
On Tue, Apr 9, 2013 at 2:45 AM, Tom Evans wrote:
> On Tue, Apr 9, 2013 at 1:24 AM, Larry Martell wrote:
>> I appreciate the suggestion, but using a hidden field sounds very
>> kludgy. Is there no other way?
>>
>
> Remember that JSON = JavaScript Object Notation - its
Thanks! This works perfectly.
On Mon, Apr 8, 2013 at 6:01 PM, Nikolas Stevenson-Molnar
wrote:
> Injecting data into a template can be tricky. I would recommend doing
> two things:
>
> 1) Serialize your data to JSON in your view first using Python's json
> module. Something like this:
images_
On Sat, Apr 13, 2013 at 8:59 AM, Breda Doherty
wrote:
> Hey Folks,
>
> Totally new to Django, trying to learn how to do some stuff so I can change
> stuff myself rather than hiring someone.
>
> I want to change the ordering of my home-page so that under Latest Activity
> the Reviews section would
On Mon, Apr 15, 2013 at 12:40 PM, Starboy wrote:
> Hi all,
>
> Totally new to django and just trying to get it installed but I keep getting
> the "ImportError: No module named django" error. I've searched around quite
> a bit looking for the answer to my problem but nothing seems to work.
>
> I'm
On Mon, Apr 15, 2013 at 2:02 PM, Nathan Hall wrote:
>
> Yep, I'm on 10.8.3. I tried sudo python setup.py install and it asked for
> a password. I assumed it was just looking for my system password but that
> didn't work.
It's asking for your own password.
--
You received this message because yo
On Mon, Apr 15, 2013 at 2:24 PM, Nathan Hall wrote:
> I tried my password, it doesn't work.
Go to System Preferences, Users and Groups. Is your account an Admin
account? If not, you can't sudo. You'll need someone with an admin
account to install it for you. But if you don't have an admin account
rrno 2] No
> such file or directory"
Then you were not in the correct directory. Follow the instructions on
this page:
https://www.djangoproject.com/download/
> On Mon, Apr 15, 2013 at 4:29 PM, Larry Martell
> wrote:
>>
>> On Mon, Apr 15, 2013 at 2:24 PM, Nathan Hall
ectory it was downloaded to
(typically ~/Downloads) or the download failed. Try running a find for
it from your home dir.
> On Mon, Apr 15, 2013 at 4:40 PM, Avraham Serour wrote:
>>
>> doesn't pip and virtualenv work on mac?
>>
>>
>> On Mon, Apr 15, 2013 a
This may help you:
http://stackoverflow.com/questions/10405978/dumpdata-too-many-arguments
On Tue, Apr 16, 2013 at 4:36 PM, frocco wrote:
> Sorry, here it is.
>
> python manage.py dumpdata > django_data.json
>
> On Tuesday, April 16, 2013 6:04:18 PM UTC-4, frocco wrote:
>>
>> Hello,
>>
>> I am u
Did you try what was suggested there? i.e. running it with '--database default'
On Tue, Apr 16, 2013 at 4:58 PM, frocco wrote:
> Thanks Larry,
>
> I read this, but not sure how to fix it.
>
> On Tuesday, April 16, 2013 6:04:18 PM UTC-4, frocco wrote:
>>
>> Hello,
>>
>> I am using django 1.5.1 an
I have a table that has 2.5 million rows and 9 columns that are all
int except for 2 varchar(255) - i.e. not that big of a table. I am
executing this statement:
Event_Message_Idx.objects.filter(event_id__in=event_ids).delete()
Where event_ids has around 1,500 items in it. There is an index on
eve
temp.userid = %s
>
> above SQL can be executed in Django using RAW SQL. See the link below.
> https://docs.djangoproject.com/en/dev/topics/db/sql/
>
> Test the SQL in the MySQL workspace when it works then move the code to the
> Django.
>
> Rgrds,
> Setiaman Lee
>
>
>
On Fri, May 3, 2013 at 3:22 PM, Hélio Miranda wrote:
> I am trying a query in Django for mongodb, but I do not get it.
> I'm doing this:
>
> Código (Python):
> post = Solution.objects.get({'SolutionName':'MEGLES'})
> print post
>
> But it prints the following: Solution object
>
> What am I doing w
On Thu, May 9, 2013 at 4:33 PM, wrote:
> yum install MySQL-python
> Loaded plugins: fastestmirror, kmod
> Loading mirror speeds from cached hostfile
> * base: mirror.hmc.edu
> * extras: mirror.sanctuaryhost.com
> * rpmforge: mirror.hmc.edu
> * updates: mirror.veracruz.co
> Setting up Install
Just upgraded to 1.5 and my app is failing with:
Internal Server Error:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/django/core/handlers/base.py",
line 187, in get_response
response = middleware_method(request, response)
File
"/Library/Python/2.7/site-packag
On Fri, May 10, 2013 at 8:55 AM, Tom Evans wrote:
> On Fri, May 10, 2013 at 2:52 PM, Larry Martell
> wrote:
>> Just upgraded to 1.5 and my app is failing with:
>>
>> Internal Server Error:
>> Traceback (most recent call last):
>> File "/Library/Pyth
On Fri, May 10, 2013 at 9:37 AM, Larry Martell wrote:
> On Fri, May 10, 2013 at 8:55 AM, Tom Evans wrote:
>> On Fri, May 10, 2013 at 2:52 PM, Larry Martell
>> wrote:
>>> Just upgraded to 1.5 and my app is failing with:
>>>
>>> Internal Server E
On Fri, May 10, 2013 at 2:13 PM, Larry Martell wrote:
> On Fri, May 10, 2013 at 9:37 AM, Larry Martell
> wrote:
>> On Fri, May 10, 2013 at 8:55 AM, Tom Evans wrote:
>>> On Fri, May 10, 2013 at 2:52 PM, Larry Martell
>>> wrote:
>>>> Just
On Sat, May 11, 2013 at 7:30 AM, Masklinn wrote:
> On 2013-05-11, at 15:08 , Larry Martell wrote:
>> On Fri, May 10, 2013 at 2:13 PM, Larry Martell
>> wrote:
>>> On Fri, May 10, 2013 at 9:37 AM, Larry Martell
>>> wrote:
>>>> On Fri, May 10, 2013
On Sat, May 11, 2013 at 8:23 AM, Masklinn wrote:
> On 2013-05-11, at 15:57 , Larry Martell wrote:
>>
>> Yes, that is what I did. This is not in my urlconf. It's in a view
>> function. I replaced:
>>
>> return direct_to_template(request, template)
>&
On Sat, May 11, 2013 at 9:08 AM, Masklinn wrote:
>
> On 2013-05-11, at 17:01 , Larry Martell wrote:
>
>> On Sat, May 11, 2013 at 8:23 AM, Masklinn wrote:
>>> On 2013-05-11, at 15:57 , Larry Martell wrote:
>>>>
>>>> Yes, that is what I did. This is
101 - 200 of 596 matches
Mail list logo