hosting django app

2014-08-22 Thread ngangsia akumbo
my boss uses php to build web apps

he is n9ot very convince that django can be very cheap in hosting as php.

is there any way i can host a django app whic is as cheap as php?

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/30d329d4-04c6-46cb-bc9a-76844e15d90a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: hosting django app

2014-08-22 Thread Babatunde Akinyanmi
Google Redhat Openshift
On 22 Aug 2014 09:25, "ngangsia akumbo"  wrote:

> my boss uses php to build web apps
>
> he is n9ot very convince that django can be very cheap in hosting as php.
>
> is there any way i can host a django app whic is as cheap as php?
>
> --
> 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 django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/30d329d4-04c6-46cb-bc9a-76844e15d90a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BWjgXPPBUVNbetYodiFJoqaCHjcm2R9ECOKRFQn-VT%2BC%3DCoXA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: cms web buyilding

2014-08-22 Thread ngangsia akumbo
Then i should be very comfortable with my django.

Any more comments on that? 

On Tuesday, August 19, 2014 11:23:07 AM UTC+1, Tom Evans wrote:
>
> On Mon, Aug 18, 2014 at 9:00 AM, ngangsia akumbo  > wrote: 
> > then if drupal , jomlam has what django has then why are u building app 
> with 
> > django, that requires much coding? 
> > 
>
> Drupal and Joomla are CMS applications. They allow you to build Drupal 
> and Joomla CMS apps. They are all very similar and do similar things. 
> If you want to do something that they cannot do, it is difficult 
> because everything you have to do must be done in the way that Drupal 
> or Joomla say you must do things. 
>
> So CMS applications allow you to easily build CMS applications, but 
> make it difficult to build non CMS applications. 
>
> Django is a library for doing things with web requests, including 
> generating HTML. It can do anything you want with web requests. It 
> does not become more difficult to utilise django when the project is 
> more complex. 
>
> When you hire someone who is good at building CMS applications, you 
> are hiring someone who will be very good at building a simple CMS, but 
> will struggle if you want to do something complex, bespoke or just 
> "not CMS-like". 
>
> When you hire someone who is good at building Django projects, you are 
> hiring someone who can build whatever it is you can think of. 
>
> If you are thinking about which skill set it is worth learning, the 
> same applies. Learning Django well will make you a more competent and 
> useful developer than learning how to operate a specific CMS platform. 
>
> On the other hand, many people make a good living by selling their CMS 
> skills to people who don't know better*. 
>
> Cheers 
>
> Tom 
>
> * If this seems derogatory, you should see the paragraph I deleted.. 
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0ea59364-1b48-4753-b109-cfc3c0de779f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cms web buyilding

2014-08-22 Thread Mario Gudelj
There's nothing else to be said mate
On 22/08/2014 6:35 pm, "ngangsia akumbo"  wrote:

> Then i should be very comfortable with my django.
>
> Any more comments on that?
>
> On Tuesday, August 19, 2014 11:23:07 AM UTC+1, Tom Evans wrote:
>>
>> On Mon, Aug 18, 2014 at 9:00 AM, ngangsia akumbo 
>> wrote:
>> > then if drupal , jomlam has what django has then why are u building app
>> with
>> > django, that requires much coding?
>> >
>>
>> Drupal and Joomla are CMS applications. They allow you to build Drupal
>> and Joomla CMS apps. They are all very similar and do similar things.
>> If you want to do something that they cannot do, it is difficult
>> because everything you have to do must be done in the way that Drupal
>> or Joomla say you must do things.
>>
>> So CMS applications allow you to easily build CMS applications, but
>> make it difficult to build non CMS applications.
>>
>> Django is a library for doing things with web requests, including
>> generating HTML. It can do anything you want with web requests. It
>> does not become more difficult to utilise django when the project is
>> more complex.
>>
>> When you hire someone who is good at building CMS applications, you
>> are hiring someone who will be very good at building a simple CMS, but
>> will struggle if you want to do something complex, bespoke or just
>> "not CMS-like".
>>
>> When you hire someone who is good at building Django projects, you are
>> hiring someone who can build whatever it is you can think of.
>>
>> If you are thinking about which skill set it is worth learning, the
>> same applies. Learning Django well will make you a more competent and
>> useful developer than learning how to operate a specific CMS platform.
>>
>> On the other hand, many people make a good living by selling their CMS
>> skills to people who don't know better*.
>>
>> Cheers
>>
>> Tom
>>
>> * If this seems derogatory, you should see the paragraph I deleted..
>>
>  --
> 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 django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0ea59364-1b48-4753-b109-cfc3c0de779f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHqTbjnQcu9BGZPrQ%3D2eOgbjt2bNcsSr3DsE2DZj897hp1KxjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: cms web buyilding

2014-08-22 Thread ngangsia akumbo
thanks bro

On Friday, August 22, 2014 10:48:30 AM UTC+1, somecallitblues wrote:
>
> There's nothing else to be said mate
> On 22/08/2014 6:35 pm, "ngangsia akumbo" > 
> wrote:
>
>> Then i should be very comfortable with my django.
>>
>> Any more comments on that? 
>>
>> On Tuesday, August 19, 2014 11:23:07 AM UTC+1, Tom Evans wrote:
>>>
>>> On Mon, Aug 18, 2014 at 9:00 AM, ngangsia akumbo  
>>> wrote: 
>>> > then if drupal , jomlam has what django has then why are u building 
>>> app with 
>>> > django, that requires much coding? 
>>> > 
>>>
>>> Drupal and Joomla are CMS applications. They allow you to build Drupal 
>>> and Joomla CMS apps. They are all very similar and do similar things. 
>>> If you want to do something that they cannot do, it is difficult 
>>> because everything you have to do must be done in the way that Drupal 
>>> or Joomla say you must do things. 
>>>
>>> So CMS applications allow you to easily build CMS applications, but 
>>> make it difficult to build non CMS applications. 
>>>
>>> Django is a library for doing things with web requests, including 
>>> generating HTML. It can do anything you want with web requests. It 
>>> does not become more difficult to utilise django when the project is 
>>> more complex. 
>>>
>>> When you hire someone who is good at building CMS applications, you 
>>> are hiring someone who will be very good at building a simple CMS, but 
>>> will struggle if you want to do something complex, bespoke or just 
>>> "not CMS-like". 
>>>
>>> When you hire someone who is good at building Django projects, you are 
>>> hiring someone who can build whatever it is you can think of. 
>>>
>>> If you are thinking about which skill set it is worth learning, the 
>>> same applies. Learning Django well will make you a more competent and 
>>> useful developer than learning how to operate a specific CMS platform. 
>>>
>>> On the other hand, many people make a good living by selling their CMS 
>>> skills to people who don't know better*. 
>>>
>>> Cheers 
>>>
>>> Tom 
>>>
>>> * If this seems derogatory, you should see the paragraph I deleted.. 
>>>
>>  -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/0ea59364-1b48-4753-b109-cfc3c0de779f%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b6742843-8b98-49c7-ae32-2c96ce360a89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: hosting django app

2014-08-22 Thread ngangsia akumbo
ok thanks

On Friday, August 22, 2014 9:28:54 AM UTC+1, Tundebabzy wrote:
>
> Google Redhat Openshift
> On 22 Aug 2014 09:25, "ngangsia akumbo" > 
> wrote:
>
>> my boss uses php to build web apps
>>
>> he is n9ot very convince that django can be very cheap in hosting as php.
>>
>> is there any way i can host a django app whic is as cheap as php?
>>  
>> -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/30d329d4-04c6-46cb-bc9a-76844e15d90a%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7a3c8bed-4494-49e0-b546-4e0def95c1df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Does Django detect changes in models Meta ?

2014-08-22 Thread termopro
Hi there,

I am using Django 1.7 RC2.
I have created models and have run all the migrations so Django created 
tables in database.
Now i decided to change database table names and have added Meta class to 
models containing table name:

class SomeModel(models.Model):
   ...
   class Meta:
  db_table = 'newname'

Now when i run "makemigrations" Django doesn't detect any changes in models:
"No changes detected in app 'blabla'."
As far as i understand the logic, Django should change table names from 
'appname_somemodel" to "newname".

Is this an expected behavior or i am missing something?

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a704839a-313e-4e7a-acd3-756045557bf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Creating a QuerySet where the presence of a row is dependent on other rows in the result

2014-08-22 Thread Dave Cole
I have a problem where I need to define a QuerySet where the conditions for 
including one row depend on evaluating values in one or more other rows in 
the QuerySet.

Is there a way to manually construct a QuerySet by iterating over rows from 
another QuerySet and individually adding them to the new QuerySet?

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cffaa0af-f5db-4c48-950e-889b75fe688b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: hosting django app

2014-08-22 Thread Jonathan Querubina
dreamhost.com

Sent from my iPhone

> On Aug 22, 2014, at 05:25, ngangsia akumbo  wrote:
> 
> my boss uses php to build web apps
> 
> he is n9ot very convince that django can be very cheap in hosting as php.
> 
> is there any way i can host a django app whic is as cheap as php?
> -- 
> 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 django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/30d329d4-04c6-46cb-bc9a-76844e15d90a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/F99A6567-922B-43CE-B9E5-1EA2F2049D35%40me.com.
For more options, visit https://groups.google.com/d/optout.


Re: hosting django app

2014-08-22 Thread ngangsia akumbo
thanks bro

On Friday, August 22, 2014 1:36:32 PM UTC+1, Jonathan Querubina wrote:
>
> dreamhost.com
>
> Sent from my iPhone
>
> On Aug 22, 2014, at 05:25, ngangsia akumbo  > wrote:
>
> my boss uses php to build web apps
>
> he is n9ot very convince that django can be very cheap in hosting as php.
>
> is there any way i can host a django app whic is as cheap as php?
>
> -- 
> 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...@googlegroups.com .
> To post to this group, send email to django...@googlegroups.com 
> .
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/30d329d4-04c6-46cb-bc9a-76844e15d90a%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/de244851-9b64-49d1-af4a-d41f65c255f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: hosting django app

2014-08-22 Thread Mark Phillips
Check out linode.com. Great service and very easy to use and manage.

Mark


On Fri, Aug 22, 2014 at 6:56 AM, ngangsia akumbo  wrote:

> thanks bro
>
>
> On Friday, August 22, 2014 1:36:32 PM UTC+1, Jonathan Querubina wrote:
>
>> dreamhost.com
>>
>> Sent from my iPhone
>>
>> On Aug 22, 2014, at 05:25, ngangsia akumbo  wrote:
>>
>> my boss uses php to build web apps
>>
>> he is n9ot very convince that django can be very cheap in hosting as php.
>>
>> is there any way i can host a django app whic is as cheap as php?
>>
>> --
>> 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...@googlegroups.com.
>> To post to this group, send email to django...@googlegroups.com.
>>
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/30d329d4-04c6-46cb-bc9a-76844e15d90a%
>> 40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>  --
> 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 django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/de244851-9b64-49d1-af4a-d41f65c255f7%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEqej2N012KFivZB9LvpYRfBa%2BP5wE%2BpQe%3DT%2BX5qSWbzAy7HgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does Django detect changes in models Meta ?

2014-08-22 Thread Norman Bird
I am new, just completed the tutorials, but from my understanding you run 
"python manage.py syncdb" and that rebuilds the tables etc.  

On Friday, August 22, 2014 3:32:43 AM UTC-4, termopro wrote:
>
> Hi there,
>
> I am using Django 1.7 RC2.
> I have created models and have run all the migrations so Django created 
> tables in database.
> Now i decided to change database table names and have added Meta class to 
> models containing table name:
>
> class SomeModel(models.Model):
>...
>class Meta:
>   db_table = 'newname'
>
> Now when i run "makemigrations" Django doesn't detect any changes in 
> models:
> "No changes detected in app 'blabla'."
> As far as i understand the logic, Django should change table names from 
> 'appname_somemodel" to "newname".
>
> Is this an expected behavior or i am missing something?
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1083dee2-e8ec-451f-9ef9-1ebbc04c41af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Handling temporary file storage with WizardView

2014-08-22 Thread zubair alam
although this post older, you might have found a solution for your 
problem...how you did that.
I think if file path is set to something where you want to save it finally 
would be much better than cleaning tmp directory.
destination folder can be specified to FileSystemStorage

On Friday, September 13, 2013 8:44:13 AM UTC+1, dspruell wrote:
>
> I'm working on a WizardView (django.contrib.formtools) and have a step 
> that handles a file upload, so I'm setting the file_storage attribute 
> as required. I'd like the file storage to be a securely created 
> temporary directory under /tmp so I'm trying to set it to an instance 
> of tempfile.mkdtemp as below, but I'm stumping myself: 
>
>
> class FileSubmissionWizardView(SessionWizardView): 
> "Form wizard implementation to handle uploaded samples" 
>
> # XXX required. Also, need to take care of removing dir/file in the 
> end. 
> file_storage = FileSystemStorage(location=mkdtemp(prefix='avsubmit_')) 
>
> def done(self, form_list, **kwargs): 
> # do_something_with_the_form_data(form_list) 
>
> # Remove temp upload directory. Eh? 
> shutil.rmtree(self.file_storage.location) 
>
> # Set a message, do a log 
> return redirect('avsubmit_index') 
>
> def process_step_files(self, form): 
> # do something like set storage extra data 
> return self.get_form_step_files(form) 
>
>
> My fu is weak, so I'm not certain the right approach here. 
> file_storage is a class attribute (right?), so I'm not sure this meets 
> my envisioned goal of having a new temporary directory created for 
> each uploaded file which I can then delete when finished. Would like 
> this workflow: 
>
> 1. User uploads file 
> 2. View invoked to process form, creates _new_ temporary directory for 
> FileSystemStorage and writes uploaded file to dir. Variable is 
> populated containing path from mkdtemp() to delete later 
> 3. View processes form 
> 4. View calls shutil.rmtree to delete temporary directory and file 
> 5. View complete 
>
> How far off of target am I? Is there a good way to do the above file 
> resource management using WizardView? 
>
> -- 
> Darren Spruell 
> phatb...@gmail.com  
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/00bc2a6a-3e96-47f1-ba48-e402bea2f140%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does Django detect changes in models Meta ?

2014-08-22 Thread Néstor
is that true if the table is already there?


On Fri, Aug 22, 2014 at 6:55 AM, Norman Bird 
wrote:

> I am new, just completed the tutorials, but from my understanding you run
> "python manage.py syncdb" and that rebuilds the tables etc.
>
> On Friday, August 22, 2014 3:32:43 AM UTC-4, termopro wrote:
>>
>> Hi there,
>>
>> I am using Django 1.7 RC2.
>> I have created models and have run all the migrations so Django created
>> tables in database.
>> Now i decided to change database table names and have added Meta class to
>> models containing table name:
>>
>> class SomeModel(models.Model):
>>...
>>class Meta:
>>   db_table = 'newname'
>>
>> Now when i run "makemigrations" Django doesn't detect any changes in
>> models:
>> "No changes detected in app 'blabla'."
>> As far as i understand the logic, Django should change table names from
>> 'appname_somemodel" to "newname".
>>
>> Is this an expected behavior or i am missing something?
>>
>  --
> 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 django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1083dee2-e8ec-451f-9ef9-1ebbc04c41af%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAON-vCMhSVSAXUsj6ROaXbYg5NzqYbUenz2VUmjHvRj%3Dghpwvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does Django detect changes in models Meta ?

2014-08-22 Thread Norman Bird
I believe so. Wont hurt to try it and see what happens.


On Fri, Aug 22, 2014 at 11:03 AM, Néstor  wrote:

> is that true if the table is already there?
>
>
> On Fri, Aug 22, 2014 at 6:55 AM, Norman Bird 
> wrote:
>
>> I am new, just completed the tutorials, but from my understanding you run
>> "python manage.py syncdb" and that rebuilds the tables etc.
>>
>> On Friday, August 22, 2014 3:32:43 AM UTC-4, termopro wrote:
>>>
>>> Hi there,
>>>
>>> I am using Django 1.7 RC2.
>>> I have created models and have run all the migrations so Django created
>>> tables in database.
>>> Now i decided to change database table names and have added Meta class
>>> to models containing table name:
>>>
>>> class SomeModel(models.Model):
>>>...
>>>class Meta:
>>>   db_table = 'newname'
>>>
>>> Now when i run "makemigrations" Django doesn't detect any changes in
>>> models:
>>> "No changes detected in app 'blabla'."
>>> As far as i understand the logic, Django should change table names from
>>> 'appname_somemodel" to "newname".
>>>
>>> Is this an expected behavior or i am missing something?
>>>
>>  --
>> 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 django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/1083dee2-e8ec-451f-9ef9-1ebbc04c41af%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/Yj6Guv0ch5k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAON-vCMhSVSAXUsj6ROaXbYg5NzqYbUenz2VUmjHvRj%3Dghpwvw%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thank You,

Norman Bird
Principal Web Development Consultant
DatabaseInDays.com
(703) 986-7157

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH_r61g335PLujL4DWcNziuDOWpacW%3DD185amZfFVAk7DhJrEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does Django detect changes in models Meta ?

2014-08-22 Thread Larry Martell
On Fri, Aug 22, 2014 at 9:55 AM, Norman Bird  wrote:
> I am new, just completed the tutorials, but from my understanding you run
> "python manage.py syncdb" and that rebuilds the tables etc.

No, syncdb only create tables that do not exist. It does not alter any
existing tables.

>
> On Friday, August 22, 2014 3:32:43 AM UTC-4, termopro wrote:
>>
>> Hi there,
>>
>> I am using Django 1.7 RC2.
>> I have created models and have run all the migrations so Django created
>> tables in database.
>> Now i decided to change database table names and have added Meta class to
>> models containing table name:
>>
>> class SomeModel(models.Model):
>>...
>>class Meta:
>>   db_table = 'newname'
>>
>> Now when i run "makemigrations" Django doesn't detect any changes in
>> models:
>> "No changes detected in app 'blabla'."
>> As far as i understand the logic, Django should change table names from
>> 'appname_somemodel" to "newname".
>>
>> Is this an expected behavior or i am missing something?

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACwCsY6SXWrzFVthSXGEMGbF2UmVaP1dMiO%2ByDc1W8Qy_28OSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does Django detect changes in models Meta ?

2014-08-22 Thread Norman Bird
I stand corrected. :-)


On Fri, Aug 22, 2014 at 11:47 AM, Larry Martell 
wrote:

> On Fri, Aug 22, 2014 at 9:55 AM, Norman Bird 
> wrote:
> > I am new, just completed the tutorials, but from my understanding you run
> > "python manage.py syncdb" and that rebuilds the tables etc.
>
> No, syncdb only create tables that do not exist. It does not alter any
> existing tables.
>
> >
> > On Friday, August 22, 2014 3:32:43 AM UTC-4, termopro wrote:
> >>
> >> Hi there,
> >>
> >> I am using Django 1.7 RC2.
> >> I have created models and have run all the migrations so Django created
> >> tables in database.
> >> Now i decided to change database table names and have added Meta class
> to
> >> models containing table name:
> >>
> >> class SomeModel(models.Model):
> >>...
> >>class Meta:
> >>   db_table = 'newname'
> >>
> >> Now when i run "makemigrations" Django doesn't detect any changes in
> >> models:
> >> "No changes detected in app 'blabla'."
> >> As far as i understand the logic, Django should change table names from
> >> 'appname_somemodel" to "newname".
> >>
> >> Is this an expected behavior or i am missing something?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/Yj6Guv0ch5k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACwCsY6SXWrzFVthSXGEMGbF2UmVaP1dMiO%2ByDc1W8Qy_28OSQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thank You,

Norman Bird
Principal Web Development Consultant
DatabaseInDays.com
(703) 986-7157

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH_r61ipO%3DtPnmKe--ibKNn%2B1%2BhuShkTjpKshjKsDe0%3DLERuCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


First app using mouse click event

2014-08-22 Thread ASHISH KUMAR GUPTA
Hi,

I am very new to web development and started learning django few days back 
as I really like and enjoy Python. I have done the first tutorial and I 
understand some of the basic concepts. I want to develop an app where I 
need to record mouse clicks from the user, can someone please guide me to a 
simple example which can explain how to do this?

Many thanks,
Ashish

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5a53509a-1875-4b81-a559-b930c75860f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Comments in real time

2014-08-22 Thread Collin Anderson
You could also look into the EventSource JavaScript API.

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4df79594-fc7d-42be-acec-4c2385afe10a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: hosting django app

2014-08-22 Thread Collin Anderson
ramnode.com is the cheapest if you can live within 128mb of ram. 
digitalocean.com is also good.

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d12846f4-19d7-4574-9bce-e1374225ffe7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: hosting django app

2014-08-22 Thread Nikolas Stevenson-Molnar
WebFaction: https://www.webfaction.com

Decent price and they handle some of the setup/deploy hassle for you.

_Nik

On 8/22/2014 1:25 AM, ngangsia akumbo wrote:
> my boss uses php to build web apps
>
> he is n9ot very convince that django can be very cheap in hosting as php.
>
> is there any way i can host a django app whic is as cheap as php?
> -- 
> 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 django-users@googlegroups.com
> .
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/30d329d4-04c6-46cb-bc9a-76844e15d90a%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/53F78B32.9010608%40consbio.org.
For more options, visit https://groups.google.com/d/optout.


Re: hosting django app

2014-08-22 Thread Cal Leeming [iops.io]
Have a look at Heroku too

Alternative, your own VPS on DigitalOcean if you have enough in-house
devops guys

Cal


On Fri, Aug 22, 2014 at 9:25 AM, ngangsia akumbo  wrote:

> my boss uses php to build web apps
>
> he is n9ot very convince that django can be very cheap in hosting as php.
>
> is there any way i can host a django app whic is as cheap as php?
>
> --
> 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 django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/30d329d4-04c6-46cb-bc9a-76844e15d90a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHKQagE%3D5YHg7_2pVr18qSLCCWKZaO2r2BKaTxhMqx9QaVaB9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jump on 1.7 in new project or stick to 1.6, target release date 30th of September

2014-08-22 Thread Robert
Imagine it's May 2014, with all the knowledge you had at that time. What 
would your answer be?

Now do the same thinking for June. July. August.


On Sunday, June 22, 2014 3:22:22 PM UTC+2, Jorge Andrés Vergara Ebratt 
wrote:
>
> I've been asking myself the same thing, I think I'm going to start with 
> Python3 and Django 1.7 :)
> On Jun 22, 2014 8:20 AM, "pjotr" > wrote:
>
>> We are starting a new project and 1.7 is not far away according to 
>> information provided in the release plan etc. Do we "dare" to jump on 1.7 
>> already now or should we be super careful and stick to 1.6? My intuition 
>> says 1.7 :) 
>>
>> -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/50678ae0-65ce-4325-82e2-f1bbd2e3d376%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/00796108-0dac-468e-a690-af631b7087ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Comments in real time

2014-08-22 Thread Julo
If you need to save the comments, take a look to django-angular.
Its an integration of angularJS into django.
Where you can save the model via javascript, i really recommend you Angular for 
this.
-Original Message-
From: Collin Anderson 
Sender: django-users@googlegroups.com
Date: Fri, 22 Aug 2014 10:37:22 
To: 
Reply-To: django-users@googlegroups.com
Subject: Re: Comments in real time

You could also look into the EventSource JavaScript API.

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4df79594-fc7d-42be-acec-4c2385afe10a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/654126984-1408733507-cardhu_decombobulator_blackberry.rim.net-1221296711-%40b18.c1.bise6.blackberry.
For more options, visit https://groups.google.com/d/optout.


trouble logging in to post ticket for django documentation

2014-08-22 Thread Steve
Total noob here.  I'm working through the (very helpful) django tutorials. 
 I'd like to enter a suggestion ticket.  I've created a github account and 
logged into it, yet I still receive the following error message from 
code.djangoproject.com:

You are currently not logged in. You may want to do so 
 now.
Error: Forbidden

TICKET_CREATE privileges are required to perform this operation. You don't 
have the required permissions.

I try to login again via the "do so" link above; I enter my new github 
username and password but instead of logging in I'm stuck in an infinite 
loop whereby I'm asked for my login credentials forever.  What gives? 
 Cheers.

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b2505d7c-769e-4e4a-8bb4-4f4e988fb8b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Preparing virtualenvwrapper for Django 1.6 development

2014-08-22 Thread Sithembewena Lloyd Dube
Hi everyone,

I am developing on a Windows 8.1 machine and wold like to setup
virtualenvironment via virtualenvwrapper so as to have a properly set up
Python development environment.

I am referring to Jeff Knupp's guide at
http://www.jeffknupp.com/blog/2013/12/18/starting-a-django-16-project-the-right-way/

After installation of virtualenvwrapper via pip, the guide says:
"
After it's installed, add the following lines to your shell's start-up file
(.zshrc, .bashrc, .profile, etc).

export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/directory-you-do-development-in
source /usr/local/bin/virtualenvwrapper.sh
"

My issue is, I do not understand what these lines are doing (I have a vague
idea but assumptions can be deadly). Moreover, it is clear that the
instructions were authored with a UNIX environment in mind.

Would anyone be so kind as to translate this to Windows speak, as well as
perhaps pointing out what file this would go into in a Windows environment?

Thanks in advance :)

Kind regards,
Sithu.
-- 
Regards,
Sithu Lloyd Dube

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCDF50yA8RT6%3DoSMkzLLdW-8Ug6EbnDyuQJVcRKMYVr%3D1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to set response headers in DetailView

2014-08-22 Thread Lucas Simon Rodrigues Magalhaes
Hello,

I see this tutorial [1] to control the response header and caching of pages 
in django. 

So I'm trying to enable this response header in a generic class DetailView. 
I did a search and found this code [2] at the end of the page and also the 
source code [3] of View. 

But are confused and do not know about which method to override correctly. 
Does anyone have any tips or example to send me? 



[1] 
http://blog.disqus.com/post/62187806135/scaling-django-to-8-billion-page-views 
[2] https://docs.djangoproject.com/en/dev/topics/class-based-views/ 
[3] 
https://github.com/django/django/blob/master/django/views/generic/base.py

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0d948c6d-34bc-44da-9d1a-534cc373c16d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to set response headers in DetailView

2014-08-22 Thread André Luiz
I did it two days ago rewriting the render_to_response method.

for reference
http://stackoverflow.com/questions/1628/send-a-file-through-django-class-based-views/16287950#16287950


2014-08-22 18:55 GMT-03:00 Lucas Simon Rodrigues Magalhaes <
lucass...@gmail.com>:

> Hello,
>
> I see this tutorial [1] to control the response header and caching of
> pages in django.
>
> So I'm trying to enable this response header in a generic class
> DetailView. I did a search and found this code [2] at the end of the page
> and also the source code [3] of View.
>
> But are confused and do not know about which method to override correctly.
> Does anyone have any tips or example to send me?
>
>
>
> [1]
> http://blog.disqus.com/post/62187806135/scaling-django-to-8-billion-page-views
>
> [2] https://docs.djangoproject.com/en/dev/topics/class-based-views/
> [3]
> https://github.com/django/django/blob/master/django/views/generic/base.py
>
> --
> 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 django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0d948c6d-34bc-44da-9d1a-534cc373c16d%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAL6LtmdgwpD5eyjOZUNXGbqPgUrNyLZEAhDMHUGiNBkE0A1Fqg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to set response headers in DetailView

2014-08-22 Thread Lucas Simon Rodrigues Magalhaes
after much research [1] managed to do this [2] in the ListView class. Now I 
apply the DetailView. 


[1] 
https://docs.djangoproject.com/en/dev/topics/conditional-view-processing/ 
[2] 
https://github.com/lucassimon/pywatch.com.br/blob/cache-techniques/screencasts/views.py#L75-L95

Em sexta-feira, 22 de agosto de 2014 20h29min47s UTC-3, André Luiz escreveu:
>
> I did it two days ago rewriting the render_to_response method.
>
> for reference 
> http://stackoverflow.com/questions/1628/send-a-file-through-django-class-based-views/16287950#16287950
>
>
> 2014-08-22 18:55 GMT-03:00 Lucas Simon Rodrigues Magalhaes <
> luca...@gmail.com >:
>
>> Hello,
>>
>> I see this tutorial [1] to control the response header and caching of 
>> pages in django. 
>>
>> So I'm trying to enable this response header in a generic class 
>> DetailView. I did a search and found this code [2] at the end of the page 
>> and also the source code [3] of View. 
>>
>> But are confused and do not know about which method to override 
>> correctly. Does anyone have any tips or example to send me? 
>>
>>
>>
>> [1] 
>> http://blog.disqus.com/post/62187806135/scaling-django-to-8-billion-page-views
>>  
>> [2] https://docs.djangoproject.com/en/dev/topics/class-based-views/ 
>> [3] 
>> https://github.com/django/django/blob/master/django/views/generic/base.py
>>  
>> -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/0d948c6d-34bc-44da-9d1a-534cc373c16d%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6611a99b-e491-4fc5-a661-94191f98c7ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Creating a QuerySet where the presence of a row is dependent on other rows in the result

2014-08-22 Thread Russell Keith-Magee
On Fri, Aug 22, 2014 at 3:20 PM, Dave Cole  wrote:

> I have a problem where I need to define a QuerySet where the conditions
> for including one row depend on evaluating values in one or more other rows
> in the QuerySet.
>
> Is there a way to manually construct a QuerySet by iterating over rows
> from another QuerySet and individually adding them to the new QuerySet?
>

No. At it's core, QuerySet is a wrapper around a relational database, and a
relational database uses relational algebra to do what it does. That isn't
an iterative activity. If you can't express membership of a queryset as a
set of conditions on a single row (where that single row might involve
joins on other tables, including itself).

However, you *can* iterate over the results of a queryset. Get an initial
candidate set via filter(), then iterate over the results to generate
(either by removing unwanted elements, or selecting and inserting elements)
a final result set. The output of this process won't be a queryset, but it
will be an iterable, and in many cases that will be enough.

Yours,
Russ Magee %-)

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJxq84_rP9eR6YKEWg_R59Zn%2Bv%3D%3Dekh7eRKpO4bq2%3D0K04kBTg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: trouble logging in to post ticket for django documentation

2014-08-22 Thread Russell Keith-Magee
Hi Steve,

We recently changed the login procedures for our Trac instance, and we're
still shaking out some of the bugs. In this case, the forbidden page has
the wrong link on it. If you want to log in with your Github account, visit:

https://code.djangoproject.com/github/login

then go ahead an lodge your ticket.

Apologies for the inconvenience.

Yours,
Russ Magee %-)



On Sat, Aug 23, 2014 at 4:06 AM, Steve  wrote:

> Total noob here.  I'm working through the (very helpful) django tutorials.
>  I'd like to enter a suggestion ticket.  I've created a github account and
> logged into it, yet I still receive the following error message from
> code.djangoproject.com:
>
> You are currently not logged in. You may want to do so
>  now.
> Error: Forbidden
>
> TICKET_CREATE privileges are required to perform this operation. You don't
> have the required permissions.
>
> I try to login again via the "do so" link above; I enter my new github
> username and password but instead of logging in I'm stuck in an infinite
> loop whereby I'm asked for my login credentials forever.  What gives?
>  Cheers.
>
> --
> 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 django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b2505d7c-769e-4e4a-8bb4-4f4e988fb8b4%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJxq848ggQ76NSMYffHYdE-abHgLGWVhwPqJ15j4amU9Tqc9KQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: trouble logging in to post ticket for django documentation

2014-08-22 Thread Steve
Thanks Russ.  Everything's peachy.

I poked around enough before posting my message that I ought have put that 
together myself.  Sorry to have bothered you.  Cheers.

On Friday, 22 August 2014 20:33:58 UTC-4, Russell Keith-Magee wrote:
>
> Hi Steve,
>
> We recently changed the login procedures for our Trac instance, and we're 
> still shaking out some of the bugs. In this case, the forbidden page has 
> the wrong link on it. If you want to log in with your Github account, visit:
>
> https://code.djangoproject.com/github/login
>
> then go ahead an lodge your ticket.
>
> Apologies for the inconvenience.
>
> Yours,
> Russ Magee %-)
>
>
>
> On Sat, Aug 23, 2014 at 4:06 AM, Steve > 
> wrote:
>
>> Total noob here.  I'm working through the (very helpful) django 
>> tutorials.  I'd like to enter a suggestion ticket.  I've created a github 
>> account and logged into it, yet I still receive the following error message 
>> from code.djangoproject.com:
>>
>> You are currently not logged in. You may want to do so 
>>  now.
>>  Error: Forbidden
>>
>> TICKET_CREATE privileges are required to perform this operation. You 
>> don't have the required permissions.
>>
>> I try to login again via the "do so" link above; I enter my new github 
>> username and password but instead of logging in I'm stuck in an infinite 
>> loop whereby I'm asked for my login credentials forever.  What gives? 
>>  Cheers.
>>  
>> -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/b2505d7c-769e-4e4a-8bb4-4f4e988fb8b4%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/68333c36-fd6f-46fb-b13a-4549d34372de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Preparing virtualenvwrapper for Django 1.6 development

2014-08-22 Thread Mike Dewhirst

On 23/08/2014 7:23 AM, Sithembewena Lloyd Dube wrote:

Hi everyone,

I am developing on a Windows 8.1 machine and wold like to setup
virtualenvironment via virtualenvwrapper so as to have a properly set up
Python development environment.

I am referring to Jeff Knupp's guide atÂ
http://www.jeffknupp.com/blog/2013/12/18/starting-a-django-16-project-the-right-way/

After installation of virtualenvwrapper via pip,


I'm not sure this gives you the windows version. I don't use it on 
Windows 8.1. I somehow thought it wasn't available for Windows and wrote 
my own set of batch files instead. But it appears there is a 
virtualenv-win ...


https://github.com/davidmarble/virtualenvwrapper-win

... in which it appears there is a powershell caveat - which is a 
mystery to me.


Good luck

Mike

the guide says:

"
After it's installed, add the following lines to your shell's start-up
file (.zshrc, .bashrc, .profile, etc).

export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/directory-you-do-development-in
source /usr/local/bin/virtualenvwrapper.sh
"

My issue is, I do not understand what these lines are doing (I have a
vague idea but assumptions can be deadly). Moreover, it is clear that
the instructions were authored with a UNIX environment in mind.

Would anyone be so kind as to translate this to Windows speak, as well
as perhaps pointing out what file this would go into in a Windows
environment?

Thanks in advance :)

Kind regards,
Sithu.
--
Regards,
Sithu Lloyd Dube

--
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 django-users@googlegroups.com
.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAH-SnCDF50yA8RT6%3DoSMkzLLdW-8Ug6EbnDyuQJVcRKMYVr%3D1w%40mail.gmail.com
.
For more options, visit https://groups.google.com/d/optout.


--
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/53F7E7C3.5010201%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: Does Django detect changes in models Meta ?

2014-08-22 Thread Norman Bird
how about: python manage.py sql myapp
I just changed my model and I had to runt that in order to build the
tables.


On Fri, Aug 22, 2014 at 11:49 AM, Norman Bird 
wrote:

> I stand corrected. :-)
>
>
> On Fri, Aug 22, 2014 at 11:47 AM, Larry Martell 
> wrote:
>
>> On Fri, Aug 22, 2014 at 9:55 AM, Norman Bird 
>> wrote:
>> > I am new, just completed the tutorials, but from my understanding you
>> run
>> > "python manage.py syncdb" and that rebuilds the tables etc.
>>
>> No, syncdb only create tables that do not exist. It does not alter any
>> existing tables.
>>
>> >
>> > On Friday, August 22, 2014 3:32:43 AM UTC-4, termopro wrote:
>> >>
>> >> Hi there,
>> >>
>> >> I am using Django 1.7 RC2.
>> >> I have created models and have run all the migrations so Django created
>> >> tables in database.
>> >> Now i decided to change database table names and have added Meta class
>> to
>> >> models containing table name:
>> >>
>> >> class SomeModel(models.Model):
>> >>...
>> >>class Meta:
>> >>   db_table = 'newname'
>> >>
>> >> Now when i run "makemigrations" Django doesn't detect any changes in
>> >> models:
>> >> "No changes detected in app 'blabla'."
>> >> As far as i understand the logic, Django should change table names from
>> >> 'appname_somemodel" to "newname".
>> >>
>> >> Is this an expected behavior or i am missing something?
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/Yj6Guv0ch5k/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CACwCsY6SXWrzFVthSXGEMGbF2UmVaP1dMiO%2ByDc1W8Qy_28OSQ%40mail.gmail.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Thank You,
>
> Norman Bird
> Principal Web Development Consultant
> DatabaseInDays.com
> (703) 986-7157
>



-- 
Thank You,

Norman Bird
Principal Web Development Consultant
DatabaseInDays.com
(703) 986-7157

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH_r61hgBCSvR_Zhur-qZJ3qTe-wsr%3D64%3DkU2tpDNuOK2mgp3g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.