Re: App structure : "One file - One object" - Is there a better way ?

2018-07-14 Thread Melvyn Sopacua
ain to construct your modules in a sensible way. -- Melvyn Sopacua -- 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...@googlegrou

Re: Accessing Django through ssh tunneling and error to get status

2018-07-16 Thread Melvyn Sopacua
f some sorts, like for example using nginx health checks[1]. But there are more implementations, so don't focus on the nginx part. Probably the quickest way to identify the culprit is to use sysadmin utilities like sockstat, netstat and similar. -- Melvyn Sopacua [1] https://doc

Re: Use an external REST API in django admin

2018-07-18 Thread Melvyn Sopacua
ding is going to go over a network connection. Not to mention figuring out relations... However, I don't understand your wish: what is the upside of storing data in a rest api this way? -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups

Re: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread Melvyn Sopacua
makes a world of difference. In fact, a lot of times just composing the mail can solve a problem as you put the code into a different setting and your brain has to process it again. Especially if you paste it as plain text without all the formatting of an IDE/editor. -- Melvyn Sopacua -- Y

Re: Is there any way to disable dispatching of signals?

2018-07-19 Thread Melvyn Sopacua
trying to shoehorn some code into a signal/observer pattern? Perhaps it's not the right fit for your problem. -- Melvyn Sopacua [1] https://docs.djangoproject.com/en/2.0/topics/signals/#preventing-duplicate-signals -- You received this message because you are subscribed to the G

Re: How to create dynamic form field? Django 2.0

2018-07-19 Thread Melvyn Sopacua
eak down your problem into the right components, which for a Django developer up to the task would be very simple (as shown by the replies). Walk before your run. -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Admin CSS Not Working in Opera or UC Browser

2018-07-20 Thread Melvyn Sopacua
omewhere so we can have a look. You do *not *have to provide a login. We should be able to see what's wrong by just loading the admin login form. Also, Opera for all intents and purposes is Chrome and if Chrome works, it's very likely to be a caching issue. -- Melvyn Sopacua -- You r

Re: Django "pub_date" error

2018-07-21 Thread Melvyn Sopacua
On maandag 16 juli 2018 04:52:51 CEST Daniel Tobi Onipe wrote: > I wrote it exactly as it is in the tutorial... Maybe that part. But you didn't define the pub_date field on the Question model or made a typo in the field name. Go back into models.py and check. -- Melvyn Sopacua

Re: Django + WSGI: no HTTP_COOKIE in environ

2018-07-21 Thread Melvyn Sopacua
always the request, as in django.http.HttpRequest or more specifically, it's subclass django.core.handlers.WSGIRequest in the case of WSGI. You're not writing a WSGI handler (who has environ as first argument). A view is two stops down and to give you the complete onion: WSGI Handler -

Re: Djando 2.0.7 image handling problem on production server

2018-07-21 Thread Melvyn Sopacua
elying on "versioned commands" goes wrong too often. -- Melvyn Sopacua [1] https://github.com/pyenv/pyenv -- 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, s

Re: Help with FilteredSelectMultiple

2018-07-21 Thread Melvyn Sopacua
ame enters or is removed from the box on the right, then the scope just increased tremendously and you need to grow frontend skills. Otherwise, things just work out of the box (upon form submission, you can call form.save() in Formview.is_valid()) or the widget isn't worth it's salt

Re: Djando 2.0.7 image handling problem on production server

2018-07-22 Thread Melvyn Sopacua
ands and the point I mentioned pyenv for is that it can read the required version for a given project from a single file in the project directory - something virtualenv cannot do. -- Melvyn Sopacua [1] https://github.com/pyenv/pyenv-virtualenvwrapper -- You received this message bec

Re: Good up-to-date Django report builder addons

2018-07-22 Thread Melvyn Sopacua
know why it's ranked all the way on the right, but this is defenitely stable and maintained and has a very good architecture: https://djangopackages.org/packages/p/django-report-builder/ -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "

Re: Good up-to-date Django report builder addons

2018-07-22 Thread Melvyn Sopacua
ck is built on DRF and frontend is vue-js. So, if the API works as advertised, it's unlikely we will be using the frontend. -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and st

Re: Prevent Django tests from accessing internet (except localhost)

2018-07-23 Thread Melvyn Sopacua
ithout changing version numbers). As for a global setting: no there isn't one. Your tests should have a switch of their own if you're worried about that. -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

Re: Prevent Django tests from accessing internet (except localhost)

2018-07-23 Thread Melvyn Sopacua
raise self.skipTest('live tests disabled or no KVKAPI configuration) def test_api_key(self): self.skip_live_tests() ... # actual tests That way you know why tests are not running. > > On Monday, July 23, 2018 at 8:22:17 AM UTC-4, Melvyn Sop

Re: Prevent Django tests from accessing internet (except localhost)

2018-07-25 Thread Melvyn Sopacua
On dinsdag 24 juli 2018 04:21:07 CEST Kum wrote: > Is there a way to prevent people from accidentally doing so? To prevent network access, there are firewalls. Django isn't the thing for it. -- Melvyn Sopacua -- You received this message because you are subscribed to the Googl

Re: Some Doubts on Session Expiries

2018-07-25 Thread Melvyn Sopacua
hat's just fine, because the browser will not send the cookie, so the session is never looked for. Once the date expires, it will be garbage collected. -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Prevent Django tests from accessing internet (except localhost)

2018-07-26 Thread Melvyn Sopacua
ng. Django has absolutely no way to do that and cannot, because there's no telling what 3rd party apps do (not that python has such a switch or even C). -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Django users" group. To un

Re: [Question] Django 2 - how to sum values based on filter and group by Year-Month

2018-07-27 Thread Melvyn Sopacua
e database But, requirement 2) applied to the first result should strictly yield 30, not 60. But I think that's an error in your requirement description. > {'date': datetime.date(2018, 1, 1), 'quantity': 60.0} (30 is *at* the last day of the month, not before it)

Re: File-Backend or Filemanagement

2018-07-29 Thread Melvyn Sopacua
angopackages.org/grids/g/file-managers/ -- Melvyn Sopacua -- 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. T

Re: Django App plugins

2018-07-29 Thread Melvyn Sopacua
that downloadable and instantly installable plugins for a web project without dev(ops) interference isn't necessarily a good thing. -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and st

Re: Django Login Error

2018-07-29 Thread Melvyn Sopacua
ut storing it as an email field that had to be unique. -- Melvyn Sopacua -- 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...@goo

Re: Django App plugins

2018-07-29 Thread Melvyn Sopacua
ocessor to load the new code in a safe manner and then run migrations. Good luck! -- Melvyn Sopacua -- 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 d

Re: Downgrade and Upgrade Django migration

2018-08-05 Thread Melvyn Sopacua
djangopackages.org/grids/g/versioning/ Probably in addition to custom code. -- Melvyn Sopacua [1] https://docs.djangoproject.com/en/2.0/ref/django-admin/#migrate [2] https://docs.djangoproject.com/en/2.0/ref/migration-operations/ #django.db.migrations.operations.RunSQL [3]

Re: How to include delete function in UpdateView instead a DeleteView

2018-08-11 Thread Melvyn Sopacua
_valid(self, form, pk): But Django never will give you one. What you're looking for is self.kwargs['pk'] and the method for form_valid can only accept one argument, which is the form. -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Gro

<    2   3   4   5   6   7