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
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
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
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
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
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
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
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
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
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
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
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
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:
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 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
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
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
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
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
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
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.
>
>
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=
22 matches
Mail list logo