Re: How to allow editing m2m relationship with nice widget on both models in admin interface?

2014-09-11 Thread Daniel Oźminkowski
Thanks. I saw it, but thought that there would be a better way to do this. because this was asked 2 years ago. I'll give it a tree. What do you think about splitting models that depend on each another into separate apps? Is that the right thing to do? W dniu środa, 10 września 2014 15:37:15 UTC+

How to allow editing m2m relationship with nice widget on both models in admin interface?

2014-09-10 Thread Daniel Oźminkowski
Hello, I have 2 questions: 1. How in Robot admin page do I limit Applications to only those which belong to the same Project as Robot? 2. How can I use a better widget in ApplicationInline in Robot page? Plus if you have any comments on the structure of models, be my guest. I have following stru

Re: /admin redirects me to 127.0.0.1:8000/admin on nginx+gunicorn production server

2014-05-09 Thread Daniel Oźminkowski
ginx redirect to > 127.0.0.1/admin. > How you solved? > > Thanks, sorry my english > > El jueves, 25 de julio de 2013 06:43:51 UTC-3, Daniel Oźminkowski escribió: >> >> I thought that it may be connected to Chrome's Omnibox, but honestly now >> I can not replic

Circular import problem

2014-04-16 Thread Daniel Oźminkowski
Hello, I recently cut my models.py into separate files and now I try to fix all the problems with imports that showed up. I hit the wall on this one though. Purpose of the application is to process a text file with instructions and fit them into hierarchical structure like this: Program <- Node

Re: /admin redirects me to 127.0.0.1:8000/admin on nginx+gunicorn production server

2013-07-25 Thread Daniel Oźminkowski
> On Jul 24, 2013 11:33 PM, "Daniel Oźminkowski" > wrote: > >> Hello again, >> >> I just had a WTF moment. I kept trying to access 192.168.1.4/admin which >> opened 0.0.0.0:8000 consistently for the last couple of hours (notice >> this is not lo

Re: /admin redirects me to 127.0.0.1:8000/admin on nginx+gunicorn production server

2013-07-24 Thread Daniel Oźminkowski
la! Admin login form. Now even without the slash at the end I get the login form everytime. Please, somebody explain this to me. I wasted so much time on this, tried so many nginx configurations and I still don't know what I did wrong. It's voodoo. ;) Best regards, Daniel Ozminkowski

/admin redirects me to 127.0.0.1:8000/admin on nginx+gunicorn production server

2013-07-17 Thread Daniel Oźminkowski
Hello, first I want to state, that I am a beginner and everything still works a little like magic for me. I have always worked with django by running it with runserver. Recently decided to put it on virtual machine and serve the site with nginx + gunicorn. I understand how to serve static files

Re: django templates

2013-07-17 Thread Daniel Oźminkowski
Hello, I am a beginner, but this looks like a job for custom admin command: https://docs.djangoproject.com/en/1.5//howto/custom-management-commands/ I found it very easy, so it should also be easy for you. Best regards, Daniel W dniu wtorek, 16 lipca 2013 18:43:42 UTC+2 użytkownik Harjot Mann