Re: CSS question for the Admin

2016-06-02 Thread Luis Zárate
Include your own CSS en admin meta class myAdmin(admin.ModelAdmin): class Meta: css ={'all': ['yourcss.css']} El jueves, 2 de junio de 2016, Mike Dewhirst escribió: > On 2/06/2016 7:31 PM, Michal Petrucha wrote: >> >> On Thu, Jun 02, 2016 at 07:22:16PM +1000, Mike Dewhirst wr

Re: Installation Advice - Win/PostgreSQL/Django

2016-06-02 Thread Avraham Serour
For development you only really need django, you can develop with sqlite and deploy on a server using postgres, using postgres on the development machine is nice but not strictly necessary. If this is for a production machine you will also need a webserver On Jun 2, 2016 10:56 PM, "Rafael E. Ferrer

Re: Installation Advice - Win/PostgreSQL/Django

2016-06-02 Thread Rafael E. Ferrero
Where did you unzipped Django? (use pip command to install Django, and please use venv, virtualenvwrapper o virtualenvironment) Take a look of this https://docs.djangoproject.com/en/1.8/howto/windows/ Rafael E. Ferrero 2016-06-02 15:30 GMT-03:00 : > Hi, folks, > > I have found a lot of Django

Re: Test fails when run in whole test suite - but not stand-alone?

2016-06-02 Thread Adam Stein
When I've had that happen before, it's because some previous test changed something (like a setting value or the site domain) that influenced the test that failed. To narrow it down, I would run all the tests up to and including the failed one. That should fail, then I start taking out half the tes

Installation Advice - Win/PostgreSQL/Django

2016-06-02 Thread cbt
Hi, folks, I have found a lot of Django installation checklists out there. Most are for very old versions. Others are rather vague, since they cover so many options. Still others assume that everything is hosted somewhere else. I have not yet been able to get the whole stack working in a local

Test fails when run in whole test suite - but not stand-alone?

2016-06-02 Thread Derek
I have a test that is failing when the file it is in is run as part of all the other test files by the test runner. If I just run only the file that contains this test - then it passes. (pass/fail refers to the very last assert in the code below.) I'd appreciate any ideas or insights from anyon

Re: Django Suit admin panel - Static files configuration Django 1.6 not working

2016-06-02 Thread Roger Lanoue jr
I am rebuilding a new server from scratch now. New IP: Same setup with new IP from Digital Ocean 1click install - http://162.243.58.204/ I am going to try and setup the Static files directory again. Since they are using Django 1.6 and the command makemigration and migrate are not in 1.6 Sho

Re: authenticate a user without databse

2016-06-02 Thread Stephen J. Butler
Did you use the login_required decorator on your view? Authentication is something you have to specify you want for a page, it is not assumed. https://docs.djangoproject.com/en/1.9/topics/auth/default/#the-login-required-decorator On Thu, Jun 2, 2016 at 3:54 AM, prabhat jha wrote: > i have cre

Re: Views.py & template (queryset)

2016-06-02 Thread Stephen J. Butler
Add date2016 to your context: { 'test': test, 'date2016': date2016 } Then it's just {{ date2016 }} in your template. On Thu, Jun 2, 2016 at 6:36 AM, Franck wrote: > Hello Stephen, > Thanks for your help, ok I think it's better to used views for what I need > to do. > Last question, how I can d

Re: Django Suit admin panel - Static files configuration Django 1.6 not working

2016-06-02 Thread Luis Zárate
Where is STATIC_ROOT ? static_root path needs to match with nginx /static location. El miércoles, 1 de junio de 2016, Roger Lanoue jr escribió: > Hi Django users group. > I am test and learning django out. I have a testing server and got my test page up. > Started to play with the Django suit

Re: Hi - I'm new to Python and DJango

2016-06-02 Thread Luis Zárate
Sure, It's good enough and more. There is some development in ERP but nothing stable or usable (not that I known). So if you are interested in develop something could be great know about. Note: I thing first step is search what programs exists and try to collaborate with one, but if nothing is

Re: Views.py & template (queryset)

2016-06-02 Thread Franck
Hello Stephen, Thanks for your help, ok I think it's better to used views for what I need to do. Last question, how I can define this in view and template ? For the moment I used 'for' & 'endfor' in my template to show all my items, but I want to show "date2016" in only one field. *Views.py* fro

Django suit and Static files not working in Django 1.6

2016-06-02 Thread Roger Lanoue jr
Hello All. I learning my first Django experience and I am making some headway. I am stuck on my test server and Django suit admin. I my goal is to get the new admin from Django suit to work. *Server setup* Ubuntu 14.04 ( A Digital Ocean VPS with one click install ) Django Version 1.6 Python:

authenticate a user without databse

2016-06-02 Thread prabhat jha
i have created a login page in django,where user will authenticate through c++ server i.e running in background. i made communication between c++ server and python server through name pipe(ipc).everything is working fine. but if user will type link of homepage without authentication of login pa

Hi - I'm new to Python and DJango

2016-06-02 Thread Notty Smurfy
Hi all, i'm new to Django. Can anyone advise if this framework is good enough to develop for an ERP system? 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 emai

Django Suit admin panel - Static files configuration Django 1.6 not working

2016-06-02 Thread Roger Lanoue jr
Hi Django users group. I am test and learning django out. I have a testing server and got my test page up. Started to play with the Django suit control panel and ran in to some problems with my setup. *Server: Digital Ocean one click install.* Ubuntu 14.04 Nginx Postgres python 2.7 django 1.6

Re: CSS question for the Admin

2016-06-02 Thread Mike Dewhirst
On 2/06/2016 7:31 PM, Michal Petrucha wrote: On Thu, Jun 02, 2016 at 07:22:16PM +1000, Mike Dewhirst wrote: I have a varchar field of 300+ chars and I'd like to know how to provide space to wrap it on screen without resorting to a TextField Any CSS ideas? Thanks Mike Perhaps you could overr

Re: Django 1.9 - Create an app that use the models from another app and dynamic CBV

2016-06-02 Thread sevenrrainbow
Thanks you James, To make it more clear. Let's say I have companies(entities) and products(sub-entities) to be more clear. Regarding the urls I use the main urls.py to include the urls.py from each app. urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^companies/', include('co

Re: CSS question for the Admin

2016-06-02 Thread Michal Petrucha
On Thu, Jun 02, 2016 at 07:22:16PM +1000, Mike Dewhirst wrote: > I have a varchar field of 300+ chars and I'd like to know how to provide > space to wrap it on screen without resorting to a TextField > > Any CSS ideas? > > Thanks > > Mike Perhaps you could override the widget to a Textarea with

CSS question for the Admin

2016-06-02 Thread Mike Dewhirst
I have a varchar field of 300+ chars and I'd like to know how to provide space to wrap it on screen without resorting to a TextField Any CSS ideas? Thanks Mike -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group an

Re: Django 1.9 - Create an app that use the models from another app and dynamic CBV

2016-06-02 Thread James Schneider
On Wed, Jun 1, 2016 at 5:21 AM, wrote: > I'm creating a basic CMS. The CMS will contain information about different > Entities. > > > A normal users can only see the information about the Entities but an > editor will have access to an Dashboard were it can add new Entities or > updated them. > >

Re: Views.py & queryset

2016-06-02 Thread James Schneider
On Wed, Jun 1, 2016 at 9:44 AM, Franck wrote: > Hello, > > Sorry first project... > > I can run : > *Test.objects.filter(dateregister__contains='2016').count()in > manage.py shell, result is ok.*In template, *{{ test.count }} *works > well, but I tried *{{ *test.filter(dateregister__contains=