Re: Django 1.5.1 - Mysql - Setting

2014-09-12 Thread Muhammad Ahmed
Thank you very much Collin Anderson. 

On Friday, 12 September 2014 21:25:42 UTC+5, Collin Anderson wrote:
>
> https://pip.readthedocs.org/en/latest/quickstart.html
>

-- 
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/ea8cdd3d-b59f-4066-b905-cbe008af911c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


develeopment servers stops at syntax error.

2014-09-12 Thread Lee
Providing the actual error and traceback would be the only way we can really 
help you. Could you paste that here?

Thanks

-- 
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/47a70eff-f2f2-4396-b34f-618ce00cdd6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Return to paginated ListView page after update

2014-09-12 Thread James Y
It must be more simple than the nothingness that searching google is 
showing me... how can I to get back to the last page (say page 
2: http://127.0.0.1:8000/articlelist/2, which works) in a ListView after an 
UpdateView.  

I can go to a random page - 10 in the below UpdateView - but how do I 
capture the referring ListView's current page and then feed that back in 
get_success_url after the update?  

class ArticleEditView(UpdateView):
model = Article
template_name = 'edit_template.html'
form_class = ArticleForm

def get_success_url(self):
return reverse('editor_listview', kwargs={'page': 10})


Thank you

-- 
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/646c8295-a5c5-42b4-b3a9-e9a477c1341b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 1.7 has issues rendering pages on laptop

2014-09-12 Thread Michael Martin
I just looked at my ticket and it was marked as a duplicate of issue 2201.
 http://bugs.jython.org/issue2201



On Fri, Sep 12, 2014 at 3:11 PM, Michael A. Martin 
wrote:

> The same application works fine on jython2.7b2 and Django 1.7
>
> I followed a tutorial step by step and it fails on a simple example.  It
> isn't a matter of not being able to access the CSS.
>
> It appears as if there is some loop issue or connection issue. I didn't
> try to run a debugger against it to look into it further.
>
> I looked at the release notes of jython2.7c and I read that they did some
> work of sockets/select/ssl. It's possible that they added a feature and
> broke something else between versions.
>
> On Sep 12, 2014, at 12:34 PM, James Schneider 
> wrote:
>
> When you say "won't render", do you mean that a stack trace error is
> thrown and the server quits, or that a page comes up but your
> CSS/JavaScript goodies aren't applied/working?
>
> If your problem is the latter:
>
> Both CSS and JS are rendered client-side, so all Django is doing is
> creating links to your CSS and JS files in the HTML via the template code.
> When your page loads incorrectly, can you access the JS or CSS files
> directly using their respective URL's? Is the dev server showing 4XX or 5XX
> error codes when the browser attempts to access those files (not for the
> main URL, just the other ancillary static files). If so, you may need to
> investigate those errors before throwing in the towel. The use of a
> specific version of Jython is probably not relevant unless it is causing
> issues serving up your static files, which is a possibility.
>
> -James
>
>
>
> On Friday, September 12, 2014, Michael Martin 
> wrote:
>
>> After trying so many things regarding the settings in Django I found that
>> the issue isn't with the official 1.7 stable release.  I found that the
>> current official version of jython2.7b3 doesn't work with Django.  With the
>> jython2.7b3 version I was able to start Django server, but the server is
>> unable to render pages that use Java Script and CSS.  I would like to have
>> this fixed and I will look for where to report the bug.
>>
>>  I did find that you can run jython2.7b2 and Django 1.7 official release
>> together and pages will render.
>>
>> On Thu, Sep 11, 2014 at 11:59 PM, Michael Martin > > wrote:
>>
>>> Try Django - Launch with Code - 5 of 24 - Implement Bootstrap Front End
>>> Framework to Django 
>>>
>>> On Thu, Sep 11, 2014 at 11:59 PM, Michael Martin <
>>> mikemartin...@gmail.com> wrote:
>>>
 opps, I forgot the url
 com/watch?v=JZVPbHilwLI

 On Thu, Sep 11, 2014 at 11:52 PM, Michael Martin <
 mikemartin...@gmail.com> wrote:

> I know there has to be something wrong with either jython2.7b3 or with
> the django 1.7 releases.  What I did was follow someones tutorial to show
> where I start experiencing problems with rendering.   If do tutorials 2-5,
> in the middle of tutorial 5 around 6:51 in the video is where Django fails
> to render anything for me.
>
>
>
>
>
>
>
> On Thu, Sep 11, 2014 at 6:21 PM, Lachlan Musicman 
> wrote:
>
>> Did you run
>>
>> python manage.py collectstatic
>>
>> ?
>>
>> cheers
>> L.
>>
>> On 12 September 2014 11:11, Michael A. Martin <
>> mikemartin...@gmail.com> wrote:
>> > It seems like when I take all the CSS and JS the html renders with
>> images.
>> > But this site rendered with a previous version. I pretty much
>> ruined this
>> > dev project today trying to figure it out. I don't know why this
>> worked on
>> > the older version but not this version.
>> >
>> > On Sep 11, 2014, at 9:38 AM, Collin Anderson 
>> wrote:
>> >
>> > What happens if you go directly to the url of one of your static
>> files?
>> >
>> > Also, please don't post your SECRET_KEY.
>> >
>> > --
>> > 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/bdcb900b-856c-4ecb-bcea-52298f7dc75a%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 

Re: Django 1.7 has issues rendering pages on laptop

2014-09-12 Thread Michael A. Martin
The same application works fine on jython2.7b2 and Django 1.7 

I followed a tutorial step by step and it fails on a simple example.  It isn't 
a matter of not being able to access the CSS. 

It appears as if there is some loop issue or connection issue. I didn't try to 
run a debugger against it to look into it further.

I looked at the release notes of jython2.7c and I read that they did some work 
of sockets/select/ssl. It's possible that they added a feature and broke 
something else between versions.

> On Sep 12, 2014, at 12:34 PM, James Schneider  wrote:
> 
> When you say "won't render", do you mean that a stack trace error is thrown 
> and the server quits, or that a page comes up but your CSS/JavaScript goodies 
> aren't applied/working?
> 
> If your problem is the latter:
> 
> Both CSS and JS are rendered client-side, so all Django is doing is creating 
> links to your CSS and JS files in the HTML via the template code. When your 
> page loads incorrectly, can you access the JS or CSS files directly using 
> their respective URL's? Is the dev server showing 4XX or 5XX error codes when 
> the browser attempts to access those files (not for the main URL, just the 
> other ancillary static files). If so, you may need to investigate those 
> errors before throwing in the towel. The use of a specific version of Jython 
> is probably not relevant unless it is causing issues serving up your static 
> files, which is a possibility.
> 
> -James
> 
> 
> 
>> On Friday, September 12, 2014, Michael Martin  
>> wrote:
>> After trying so many things regarding the settings in Django I found that 
>> the issue isn't with the official 1.7 stable release.  I found that the 
>> current official version of jython2.7b3 doesn't work with Django.  With the 
>> jython2.7b3 version I was able to start Django server, but the server is 
>> unable to render pages that use Java Script and CSS.  I would like to have 
>> this fixed and I will look for where to report the bug.  
>> 
>>  I did find that you can run jython2.7b2 and Django 1.7 official release 
>> together and pages will render.
>> 
>>> On Thu, Sep 11, 2014 at 11:59 PM, Michael Martin  
>>> wrote:
>>> Try Django - Launch with Code - 5 of 24 - Implement Bootstrap Front End 
>>> Framework to Django
>>> 
 On Thu, Sep 11, 2014 at 11:59 PM, Michael Martin  
 wrote:
 opps, I forgot the url  
 com/watch?v=JZVPbHilwLI
 
> On Thu, Sep 11, 2014 at 11:52 PM, Michael Martin 
>  wrote:
> I know there has to be something wrong with either jython2.7b3 or with 
> the django 1.7 releases.  What I did was follow someones tutorial to show 
> where I start experiencing problems with rendering.   If do tutorials 
> 2-5, in the middle of tutorial 5 around 6:51 in the video is where Django 
> fails to render anything for me.   
> 
> 
> 
> 
> 
> 
> 
>> On Thu, Sep 11, 2014 at 6:21 PM, Lachlan Musicman  
>> wrote:
>> Did you run
>> 
>> python manage.py collectstatic
>> 
>> ?
>> 
>> cheers
>> L.
>> 
>> On 12 September 2014 11:11, Michael A. Martin  
>> wrote:
>> > It seems like when I take all the CSS and JS the html renders with 
>> > images.
>> > But this site rendered with a previous version. I pretty much ruined 
>> > this
>> > dev project today trying to figure it out. I don't know why this 
>> > worked on
>> > the older version but not this version.
>> >
>> > On Sep 11, 2014, at 9:38 AM, Collin Anderson  
>> > wrote:
>> >
>> > What happens if you go directly to the url of one of your static files?
>> >
>> > Also, please don't post your SECRET_KEY.
>> >
>> > --
>> > 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/bdcb900b-856c-4ecb-bcea-52298f7dc75a%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 

develeopment servers stops at syntax error.

2014-09-12 Thread Yunus Koçyiğit
when i change source code of a model at django 1.7 with python 2.7. development 
server stops immediately when a syntax error occurs. am i need option with 
runserver ? also in my settings.py debug= true

-- 
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/cd86371f-7869-4f4d-9061-fd0dfcf0f340%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 1.7 has issues rendering pages on laptop

2014-09-12 Thread James Schneider
When you say "won't render", do you mean that a stack trace error is thrown
and the server quits, or that a page comes up but your CSS/JavaScript
goodies aren't applied/working?

If your problem is the latter:

Both CSS and JS are rendered client-side, so all Django is doing is
creating links to your CSS and JS files in the HTML via the template code.
When your page loads incorrectly, can you access the JS or CSS files
directly using their respective URL's? Is the dev server showing 4XX or 5XX
error codes when the browser attempts to access those files (not for the
main URL, just the other ancillary static files). If so, you may need to
investigate those errors before throwing in the towel. The use of a
specific version of Jython is probably not relevant unless it is causing
issues serving up your static files, which is a possibility.

-James



On Friday, September 12, 2014, Michael Martin 
wrote:

> After trying so many things regarding the settings in Django I found that
> the issue isn't with the official 1.7 stable release.  I found that the
> current official version of jython2.7b3 doesn't work with Django.  With the
> jython2.7b3 version I was able to start Django server, but the server is
> unable to render pages that use Java Script and CSS.  I would like to have
> this fixed and I will look for where to report the bug.
>
>  I did find that you can run jython2.7b2 and Django 1.7 official release
> together and pages will render.
>
> On Thu, Sep 11, 2014 at 11:59 PM, Michael Martin  > wrote:
>
>> Try Django - Launch with Code - 5 of 24 - Implement Bootstrap Front End
>> Framework to Django 
>>
>> On Thu, Sep 11, 2014 at 11:59 PM, Michael Martin > > wrote:
>>
>>> opps, I forgot the url
>>> com/watch?v=JZVPbHilwLI
>>>
>>> On Thu, Sep 11, 2014 at 11:52 PM, Michael Martin <
>>> mikemartin...@gmail.com
>>> > wrote:
>>>
 I know there has to be something wrong with either jython2.7b3 or with
 the django 1.7 releases.  What I did was follow someones tutorial to show
 where I start experiencing problems with rendering.   If do tutorials 2-5,
 in the middle of tutorial 5 around 6:51 in the video is where Django fails
 to render anything for me.







 On Thu, Sep 11, 2014 at 6:21 PM, Lachlan Musicman > wrote:

> Did you run
>
> python manage.py collectstatic
>
> ?
>
> cheers
> L.
>
> On 12 September 2014 11:11, Michael A. Martin  > wrote:
> > It seems like when I take all the CSS and JS the html renders with
> images.
> > But this site rendered with a previous version. I pretty much ruined
> this
> > dev project today trying to figure it out. I don't know why this
> worked on
> > the older version but not this version.
> >
> > On Sep 11, 2014, at 9:38 AM, Collin Anderson  > wrote:
> >
> > What happens if you go directly to the url of one of your static
> files?
> >
> > Also, please don't post your SECRET_KEY.
> >
> > --
> > 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/bdcb900b-856c-4ecb-bcea-52298f7dc75a%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 

Right way to create proxy to User model in Django 1.7

2014-09-12 Thread Izabella Gál

Hi!

Could you, please, help me to find the right way to create proxy to User 
model in Django 1.7?


In 'myapp.models.py' I have a MyUser class which should inherit from the 
user model specified in settings.AUTH_USER_MODEL:


If I am using the get_user_model() method, I receive the 
'django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.' 
exception


class MyUser(get_user_model()):
class Meta:
proxy = True

def my_method(self):
   return 'hello'

And if I replace the get_user_model() method with 
settings.AUTH_USER_MODEL, I receive another exception: TypeError: Error 
when calling the metaclass bases

str() takes at most 1 argument (3 given)

In settings.py I have: AUTH_USER_MODEL = 'auth.User'

Thanks in advance!

Izabella

--
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/54129970.7070400%40vitheia.com.
For more options, visit https://groups.google.com/d/optout.


django 1.7 Groups

2014-09-12 Thread John Rodkey
How can I modify the auto generated auth groups to include a foreign key?  We 
wish to add a foreign key to show group ownership to a company table.

For example, Company A could create a librarians group and assign users.

Company B could create a brokers group and assign users

-- 
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/c2ac8d7c-80c3-4573-ae6c-d3c1de00fc9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: extremely slow django migrations

2014-09-12 Thread John Schmitt
On Wed, Sep 10, 2014 at 02:06:09PM -0500, Andrew Pinkham wrote:
> On Sep 10, 2014, at 12:25 PM, John Schmitt  wrote:
> > Which file?  What do I look for?  What do I 'verify' and to what should it 
> > be compared?
> 
> When you run `makemigrations app_name`, the output will inform you of the 
> creation of at least one migration file, typically in 
> project_name/app_name/migrations. You may look in this(/these) file(s), and 
> ensure that the changes made are the changes you intended on your models.
> 
> The documentation allows for understanding of the new files:
> 
> https://docs.djangoproject.com/en/1.7/topics/migrations/
> https://docs.djangoproject.com/en/1.7/ref/migration-operations/
> 
> Note that the verification step is entirely optional. The check is not to 
> ensure that migrations work properly. The check is so that you can check that 
> the changes you made in your models are the ones you intended.

I see.  This is exactly what I wanted to know, thank you.

> 
> If you've worked with South, the workflow for working with with native 
> migrations is nearly identical.

I've used Python for years but I'm new to Django so I can't relate to South.  
My references are the official documentation, stackexchange, and this list.

-- 
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/20140912182609.GG12100%40mediapc.snapdragonfly.net.
For more options, visit https://groups.google.com/d/optout.


Re: How to express a seemingly straightforward upate in the ORM?

2014-09-12 Thread Benjamin Scherrey
I should assume then that this is something that the existing Django ORM
cannot model?

-- Ben

On Mon, Sep 8, 2014 at 1:06 PM, Benjamin Scherrey 
wrote:

> I've got an application that needs to frequently update a boolean value
> (ChannelItem.channel_stocks) against a temporary table that gets created
> and lives just long enough for this transaction. The table is simply a list
> of alpha-num skus and created like this:
>
> cursor.execute("create temporary table skus (sku varchar);")  # Postgres
> only
> cursor.execute("insert into skus (sku) values %s;" % skus)
>
> This temporary table will hold, at various times, anywhere from 300 to
> 300,000 items so my preference is a 'join' and not an 'in' filter as that's
> not likely to be performant at the higher end of that scale.
>
> The ChannelItem model relates to the Partner, Channel, and Item models and
> is filtered for just the specific Partner/Channel pair that we care about
> via a for_partner_channel() filter. What I need is to perform the update
> for the 'ChannelItem.channel_stocks' value only if the related 'Item.sku'
> is one of the 'sku' in temporary table 'skus'. The following is the
> cleanest generating SQL I can come up with via the ORM but I can't figure
> out how to do a join/limit to only those items that are present in the
> temporary table:
>
>
> ChannelItem.objects().for_partner_channel(mp,mc).select_related('item').select_related('partner').select_related('channel').extra(tables='skus').update(channel_stocks=True)
>
> It seemed that the .extra(join=...) proposal that has been rejected is the
> obvious solution. Since that's not an option, what is the correct way to do
> this?
>
> This seems to me to be a very common kind of operation that one might
> encounter so I'm surprised it's so difficult (or perhaps less surprised
> that I just can't figure it out) to represent this operation in the Django
> ORM. Appreciate any advice otherwise I have to go full raw with this which
> I'd really prefer not to do.
>
> BTW - if I leave out any of those select_related chains from the above
> request my number of SQL requests goes up from 1 to hundreds.
>
> thanx,
>
>   -- Ben
>
> --
> Chief Systems Architect Proteus Technologies 
> Chief Fan Biggest Fan Productions 
> Personal blog where I am not your demographic
> .
>
> This email intended solely for those who have received it. If you have
> received this email by accident - well lucky you!!
>



-- 
Chief Systems Architect Proteus Technologies 
Chief Fan Biggest Fan Productions 
Personal blog where I am not your demographic
.

This email intended solely for those who have received it. If you have
received this email by accident - well lucky you!!

-- 
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/CAHN%3D9D5mh%2BXyBENe3f5O%2BS66TG4sJU9afM7kZ1xXSi_G8H1Xqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Issue with models.FilePathField in Django 1.7 Admin?

2014-09-12 Thread Benjamin Scherrey
Yes that all works. My unit tests and when reviewing the resulting objects
via the django shell show everything is absolutely working and the content
of my FilePathField data is correct. It's only the Admin UI that is giving
me fits.

thanx,

  -- Ben

On Thu, Sep 11, 2014 at 11:19 PM, Collin Anderson 
wrote:

> try checking os.listdir(settings.BASE_SFTP_DIRECTORY) to see if python can
> actually see your files.
>
> --
> 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/d3a4e9b1-9e8a-4270-84de-5a339ec2cdd8%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Chief Systems Architect Proteus Technologies 
Chief Fan Biggest Fan Productions 
Personal blog where I am not your demographic
.

This email intended solely for those who have received it. If you have
received this email by accident - well lucky you!!

-- 
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/CAHN%3D9D5s97Q8ZKA1hq-t0zn5ySZPhFogptk_fD2r6dQsACvzCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Install Django Apps via Admin Interface

2014-09-12 Thread Andreas Kuhne
I really can't see a usecase for something like this. The only time I want
to install new packages to my django system is on my dev server while
developing something. I would also want the change to be permanent,
therefore writing it in my settings.py file. I often forget to add the
package to INSTALLED_APPS, but I'd rather have that issue than having a
user change it on my production system. I can't come up with one scenario
where being able to add it in django admin would be good - specially in
production.

Sure, the feature could be on only when the server is running in debug
mode, but I wouldn't like to risk the possibility of it working on a
production server. I'd rather see that changes like that are done manually.
Also adding packages to our production server should go through a test
phase, so that we know that nothing is broken before running it in our
production system.

I would however like a command to be able to list all plugins (with short
descriptions) via pip. That would be a great thing, when I am searching for
a specific plugin. The grails community has something like that.

Regards,

Andréas

12 18:23 GMT+02:00 Collin Anderson :

> And you would expect that to happen just through admin? Would you trust
>> your users really to do all
>> that - basically giving full control what users installs to your system
>> without discretion?
>
>
> Installing apps via the admin would be useful when the user is the same
> person as the sysadmin.\
>
> However as we mentioned, Django really isn't architected for this. I could
> see Django-CMS creating a sub architecture that would allow for this sort
> of thing. Basically, you would need to create some sort of package of code
> that would work without getting added to INSTALLED_APPS.
>
> --
> 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/98243685-35ea-4c48-8d45-afc4c9c00aac%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/CALXYUbnGJAWc-yXhXWosLyLzBR8nvutA8dtL7tEGFwwNzbgXdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 1.5.1 - Mysql - Setting

2014-09-12 Thread Collin Anderson
https://pip.readthedocs.org/en/latest/quickstart.html

-- 
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/b4512517-4fb7-4987-8562-9045dd1cfd47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Install Django Apps via Admin Interface

2014-09-12 Thread Collin Anderson

>
> And you would expect that to happen just through admin? Would you trust 
> your users really to do all 
> that - basically giving full control what users installs to your system 
> without discretion? 


Installing apps via the admin would be useful when the user is the same 
person as the sysadmin.\

However as we mentioned, Django really isn't architected for this. I could 
see Django-CMS creating a sub architecture that would allow for this sort 
of thing. Basically, you would need to create some sort of package of code 
that would work without getting added to INSTALLED_APPS.

-- 
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/98243685-35ea-4c48-8d45-afc4c9c00aac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 1.7 has issues rendering pages on laptop

2014-09-12 Thread Michael Martin
After trying so many things regarding the settings in Django I found that
the issue isn't with the official 1.7 stable release.  I found that the
current official version of jython2.7b3 doesn't work with Django.  With the
jython2.7b3 version I was able to start Django server, but the server is
unable to render pages that use Java Script and CSS.  I would like to have
this fixed and I will look for where to report the bug.

 I did find that you can run jython2.7b2 and Django 1.7 official release
together and pages will render.

On Thu, Sep 11, 2014 at 11:59 PM, Michael Martin 
wrote:

> https://www.youtube.com/watch?v=JZVPbHilwLI
>
> On Thu, Sep 11, 2014 at 11:59 PM, Michael Martin 
> wrote:
>
>> opps, I forgot the url
>> com/watch?v=JZVPbHilwLI
>>
>> On Thu, Sep 11, 2014 at 11:52 PM, Michael Martin > > wrote:
>>
>>> I know there has to be something wrong with either jython2.7b3 or with
>>> the django 1.7 releases.  What I did was follow someones tutorial to show
>>> where I start experiencing problems with rendering.   If do tutorials 2-5,
>>> in the middle of tutorial 5 around 6:51 in the video is where Django fails
>>> to render anything for me.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Thu, Sep 11, 2014 at 6:21 PM, Lachlan Musicman 
>>> wrote:
>>>
 Did you run

 python manage.py collectstatic

 ?

 cheers
 L.

 On 12 September 2014 11:11, Michael A. Martin 
 wrote:
 > It seems like when I take all the CSS and JS the html renders with
 images.
 > But this site rendered with a previous version. I pretty much ruined
 this
 > dev project today trying to figure it out. I don't know why this
 worked on
 > the older version but not this version.
 >
 > On Sep 11, 2014, at 9:38 AM, Collin Anderson 
 wrote:
 >
 > What happens if you go directly to the url of one of your static
 files?
 >
 > Also, please don't post your SECRET_KEY.
 >
 > --
 > 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/bdcb900b-856c-4ecb-bcea-52298f7dc75a%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/E521B7F1-1449-4EEF-9023-BF708E111801%40gmail.com
 .
 > For more options, visit https://groups.google.com/d/optout.



 --
 You have to be really clever to come up with a genuinely dangerous
 thought. I am disheartened that people can be clever enough to do that
 and not clever enough to do the obvious thing and KEEP THEIR IDIOT
 MOUTHS SHUT about it, because it is much more important to sound
 intelligent when talking to your friends.
 This post was STUPID.

 ---
 The Most Terrifying Thought Experiment of All Time

 http://www.slate.com/articles/technology/bitwise/2014/07/roko_s_basilisk_the_most_terrifying_thought_experiment_of_all_time.html

 --
 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/CAGBeqiN4oFoqM%2BW0-VXryHq8CWLU1H1H-qWWVkLXtXWbb85XSA%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 

Re: Django 1.5.1 - Mysql - Setting

2014-09-12 Thread Muhammad Ahmed
Thank you very much Fred for your detailed answer. 

I have never used pip. I will be pleased if you kindly provide a reference 
/ tutorial link to understand pip. 

Or the direct link to adapter. I am using Win7 x86. 


Thanks indeed for your help. 



On Thursday, 11 September 2014 21:34:25 UTC+5, Fred Stluka wrote:
>
>  Ahmed,
>
> For connecting Django to MySQL, I use MySQL-python, installed 
> via pip as:
> pip install MySQL-python
>
> My settings file contains:
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.mysql',
> 'NAME'  : 'name of our database',
> 'USER'  : 'username to access the database',
> 'PASSWORD'  : 'password to access the database',
> # Required for Windows; Harmless (same as default) for Linux
> 'HOST'  : '127.0.0.1',
> # Required for Windows; Harmless (same as default) for Linux
> 'PORT'  : '3306',
> },
>
>  --Fred 
> --
> Fred Stluka -- mailt...@bristle.com  -- 
> http://bristle.com/~fred/ 
> Bristle Software, Inc -- http://bristle.com -- Glad to be of service! 
> Open Source: Without walls and fences, we need no Windows or Gates. 
> --
>  On 9/11/14 9:34 AM, Muhammad Ahmed wrote:
>  
> Hi,  
>
>  I have been trying to launch my Django Model using a tutorial. but 
> unfortunately the tutorial is about Django 1.1.
>
>  Kindly guide me that what configuration (in setting.py) will be required 
> if I use Python27 / Django 1.5.1 with Mysql. 
>
>  please also guide towards the appropriate "MySql Adoptor" for Django 
> 1.5.1. 
>
>  
>  Thanks in advance :) 
>
>  
>  Ahmed
>  -- 
> 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/881464cf-d4aa-4934-9915-3830ebafd4e6%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/ee4c8d1e-456c-49fb-99ec-f85887c5f70a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Install Django Apps via Admin Interface

2014-09-12 Thread Jani Tiainen
Hi,

It seems that you're confusing Django to to be something that it isn't.

Django is a web application framework. In short meaning that it is set of 
(Python) libraries
that are used to build web applications. Django app is usually reusable piece 
of code that brings
some (usually common) functionality within framework ecosystem. 

But Django is not CMS like tool where you really install stuff just by clicking 
a button and it magically appears.
There exists few CMS solutions built on top of Django - I've never used them so 
I can't vouch for any of them.

In simplest case installing django app is really just by adding a module in 
INSTALLED_APPS in settings.py 
but many times it's much more - data migrations, configuring external services, 
collecting static
files, deciding url routing. Maybe even installing system packages that 
requires root access.

And you would expect that to happen just through admin? Would you trust your 
users really to do all
that - basically giving full control what users installs to your system without 
discretion? 

-- 

Jani Tiainen

On Fri, 12 Sep 2014 11:26:56 +0200
Thomas Güttler  wrote:

> 
> 
> Am 10.09.2014 um 11:07 schrieb Avraham Serour:
> > you can't, you would need to write something yourself capable of doing this.
> 
> that's sad.
> 
> > in any case why would you want to do that?
> 
> Convenience. It would be great if some admin plugin could do this: Connect to 
> pypi and list all
> available packages which can be installed into django ...
> 
> I see a lot of **not DRY** docs in django packages: Over and over again the 
> same instructions: Add "foo" to 
> INSTALLED_APPS 
> 
> > adding an app to a project may involve not only installing the python 
> > package
> > and adding the app to INSTALLED_APPS, but also adding configurations to 
> > settings.py, running syncdb/migrate and
> > reloading the instance.
> 
> I guess django experts have a good solution for this small technical problem.
> 
>Thomas
> 
> 
> -- 
> Thomas Güttler
> http://thomas-guettler.de/
> 
> -- 
> 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/5412BC60.2080705%40tbz-pariv.de.
> 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/20140912125341.34c70c58%40jns42-l.w2k.keypro.fi.
For more options, visit https://groups.google.com/d/optout.


Re: Install Django Apps via Admin Interface

2014-09-12 Thread Thomas Güttler



Am 10.09.2014 um 11:07 schrieb Avraham Serour:

you can't, you would need to write something yourself capable of doing this.


that's sad.


in any case why would you want to do that?


Convenience. It would be great if some admin plugin could do this: Connect to 
pypi and list all
available packages which can be installed into django ...

I see a lot of **not DRY** docs in django packages: Over and over again the same instructions: Add "foo" to 
INSTALLED_APPS 



adding an app to a project may involve not only installing the python package
and adding the app to INSTALLED_APPS, but also adding configurations to 
settings.py, running syncdb/migrate and
reloading the instance.


I guess django experts have a good solution for this small technical problem.

  Thomas


--
Thomas Güttler
http://thomas-guettler.de/

--
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/5412BC60.2080705%40tbz-pariv.de.
For more options, visit https://groups.google.com/d/optout.


Re: Django 1.7 has issues rendering pages on laptop

2014-09-12 Thread Michael Martin
https://www.youtube.com/watch?v=JZVPbHilwLI

On Thu, Sep 11, 2014 at 11:59 PM, Michael Martin 
wrote:

> opps, I forgot the url
> com/watch?v=JZVPbHilwLI
>
> On Thu, Sep 11, 2014 at 11:52 PM, Michael Martin 
> wrote:
>
>> I know there has to be something wrong with either jython2.7b3 or with
>> the django 1.7 releases.  What I did was follow someones tutorial to show
>> where I start experiencing problems with rendering.   If do tutorials 2-5,
>> in the middle of tutorial 5 around 6:51 in the video is where Django fails
>> to render anything for me.
>>
>>
>>
>>
>>
>>
>>
>> On Thu, Sep 11, 2014 at 6:21 PM, Lachlan Musicman 
>> wrote:
>>
>>> Did you run
>>>
>>> python manage.py collectstatic
>>>
>>> ?
>>>
>>> cheers
>>> L.
>>>
>>> On 12 September 2014 11:11, Michael A. Martin 
>>> wrote:
>>> > It seems like when I take all the CSS and JS the html renders with
>>> images.
>>> > But this site rendered with a previous version. I pretty much ruined
>>> this
>>> > dev project today trying to figure it out. I don't know why this
>>> worked on
>>> > the older version but not this version.
>>> >
>>> > On Sep 11, 2014, at 9:38 AM, Collin Anderson 
>>> wrote:
>>> >
>>> > What happens if you go directly to the url of one of your static files?
>>> >
>>> > Also, please don't post your SECRET_KEY.
>>> >
>>> > --
>>> > 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/bdcb900b-856c-4ecb-bcea-52298f7dc75a%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/E521B7F1-1449-4EEF-9023-BF708E111801%40gmail.com
>>> .
>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>>
>>> --
>>> You have to be really clever to come up with a genuinely dangerous
>>> thought. I am disheartened that people can be clever enough to do that
>>> and not clever enough to do the obvious thing and KEEP THEIR IDIOT
>>> MOUTHS SHUT about it, because it is much more important to sound
>>> intelligent when talking to your friends.
>>> This post was STUPID.
>>>
>>> ---
>>> The Most Terrifying Thought Experiment of All Time
>>>
>>> http://www.slate.com/articles/technology/bitwise/2014/07/roko_s_basilisk_the_most_terrifying_thought_experiment_of_all_time.html
>>>
>>> --
>>> 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/CAGBeqiN4oFoqM%2BW0-VXryHq8CWLU1H1H-qWWVkLXtXWbb85XSA%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/CAD0urK20WTDP7uuS_a0PQUjkcemy-c8i8rt7pxvepZJqF4%3DgCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 1.7 has issues rendering pages on laptop

2014-09-12 Thread Michael Martin
opps, I forgot the url
com/watch?v=JZVPbHilwLI

On Thu, Sep 11, 2014 at 11:52 PM, Michael Martin 
wrote:

> I know there has to be something wrong with either jython2.7b3 or with the
> django 1.7 releases.  What I did was follow someones tutorial to show where
> I start experiencing problems with rendering.   If do tutorials 2-5, in the
> middle of tutorial 5 around 6:51 in the video is where Django fails to
> render anything for me.
>
>
>
>
>
>
>
> On Thu, Sep 11, 2014 at 6:21 PM, Lachlan Musicman 
> wrote:
>
>> Did you run
>>
>> python manage.py collectstatic
>>
>> ?
>>
>> cheers
>> L.
>>
>> On 12 September 2014 11:11, Michael A. Martin 
>> wrote:
>> > It seems like when I take all the CSS and JS the html renders with
>> images.
>> > But this site rendered with a previous version. I pretty much ruined
>> this
>> > dev project today trying to figure it out. I don't know why this worked
>> on
>> > the older version but not this version.
>> >
>> > On Sep 11, 2014, at 9:38 AM, Collin Anderson 
>> wrote:
>> >
>> > What happens if you go directly to the url of one of your static files?
>> >
>> > Also, please don't post your SECRET_KEY.
>> >
>> > --
>> > 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/bdcb900b-856c-4ecb-bcea-52298f7dc75a%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/E521B7F1-1449-4EEF-9023-BF708E111801%40gmail.com
>> .
>> > For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> You have to be really clever to come up with a genuinely dangerous
>> thought. I am disheartened that people can be clever enough to do that
>> and not clever enough to do the obvious thing and KEEP THEIR IDIOT
>> MOUTHS SHUT about it, because it is much more important to sound
>> intelligent when talking to your friends.
>> This post was STUPID.
>>
>> ---
>> The Most Terrifying Thought Experiment of All Time
>>
>> http://www.slate.com/articles/technology/bitwise/2014/07/roko_s_basilisk_the_most_terrifying_thought_experiment_of_all_time.html
>>
>> --
>> 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/CAGBeqiN4oFoqM%2BW0-VXryHq8CWLU1H1H-qWWVkLXtXWbb85XSA%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/CAD0urK2O43OFv2M%3Dw6r-ZNJbT7%2B1n2S%3DJQGbPKgG%2B6cjAQLmiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 1.7 has issues rendering pages on laptop

2014-09-12 Thread Michael Martin
I know there has to be something wrong with either jython2.7b3 or with the
django 1.7 releases.  What I did was follow someones tutorial to show where
I start experiencing problems with rendering.   If do tutorials 2-5, in the
middle of tutorial 5 around 6:51 in the video is where Django fails to
render anything for me.







On Thu, Sep 11, 2014 at 6:21 PM, Lachlan Musicman  wrote:

> Did you run
>
> python manage.py collectstatic
>
> ?
>
> cheers
> L.
>
> On 12 September 2014 11:11, Michael A. Martin 
> wrote:
> > It seems like when I take all the CSS and JS the html renders with
> images.
> > But this site rendered with a previous version. I pretty much ruined this
> > dev project today trying to figure it out. I don't know why this worked
> on
> > the older version but not this version.
> >
> > On Sep 11, 2014, at 9:38 AM, Collin Anderson 
> wrote:
> >
> > What happens if you go directly to the url of one of your static files?
> >
> > Also, please don't post your SECRET_KEY.
> >
> > --
> > 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/bdcb900b-856c-4ecb-bcea-52298f7dc75a%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/E521B7F1-1449-4EEF-9023-BF708E111801%40gmail.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> You have to be really clever to come up with a genuinely dangerous
> thought. I am disheartened that people can be clever enough to do that
> and not clever enough to do the obvious thing and KEEP THEIR IDIOT
> MOUTHS SHUT about it, because it is much more important to sound
> intelligent when talking to your friends.
> This post was STUPID.
>
> ---
> The Most Terrifying Thought Experiment of All Time
>
> http://www.slate.com/articles/technology/bitwise/2014/07/roko_s_basilisk_the_most_terrifying_thought_experiment_of_all_time.html
>
> --
> 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/CAGBeqiN4oFoqM%2BW0-VXryHq8CWLU1H1H-qWWVkLXtXWbb85XSA%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/CAD0urK1D8LhJeBp4Eg79qFKwekKiNJH7rNHSt5Wr0CktJNfvyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.