Yes
For example, in the filter {{ var|foo:"bar" }}, the filter foo would be passed
the variable var and the argument "bar".
I want to pass 2 (maybe 3) variables and correct me if I am wrong but
Custom filters are just Python functions that take one or two arguments:
So could do {{ v
On 13/08/2018 4:01 PM, Claire Chan Myae wrote:
Hello,
I would like to integrate Django with my ldap. I want to use ldap only
for user authentication part, but not for user group. Would that be
possible? If I use ldap, i must use both user and group or I can use
only user?
https://djangopack
7 AM UTC+8, Mike Dewhirst wrote:
On 10/08/2018 11:45 AM, Andrew Fam wrote:
Hi all, I have a saas solution currently sitting in 1 instance
using a postgres db.
Due to recent expansions, I need to keep the data in the country
of which it came from. e.g Malaysia or Philippines w
On 10/08/2018 11:45 AM, Andrew Fam wrote:
Hi all, I have a saas solution currently sitting in 1 instance using a
postgres db.
Due to recent expansions, I need to keep the data in the country of
which it came from. e.g Malaysia or Philippines will have a database
of their own.
In addition, some
On 10/08/2018 4:41 AM, Kasper Laudrup wrote:
Hi Dheeraj,
On 09/08/2018 10.53, Dheeraj Kumar wrote:
Can u tell me please.
Tell you what?
Where to find books or tutorials on how to learn to program in Python?
Not really, since I honestly don't know.
I'm sure there are some very good books a
l the morning.
Good luck
On Thu, Aug 9, 2018 at 2:04 PM, Mike Dewhirst <mailto:mi...@dewhirst.com.au>> wrote:
On 9/08/2018 5:25 PM, Ramandeep Kaur wrote:
when i run my manage.py server its giving me invalid syntax error.
File "C:\Users\Dell\vms2\vms2\setting
working you can generate a new secret key by
executing that "pip install ..." line in a command prompt.
There might be a few more things you need to clean up and the traceback
ought to provide hints.
Good luck
Mike
On Thu, Aug 9, 2018 at 12:14 PM, Mike Dewhirst <mailto:mi...@
File "C:\Python27\lib\site-packages\django\conf\__init__.py", line
55, in __getattr__
self._setup(name)
File "C:\Python27\lib\site-packages\django\conf\__init__.py", line
43, in _setup
self._wrapped = Settings(settings_module)
File "C:\Python27\lib\site-packages\
Had a thought overnight ... maybe the 301 (permanently redirected) is
because the staging server is using https and the server redirects from
http to https.
I'll start looking there.
If anyone has any advice on best practice for this I'd love to hear it.
Thanks
Mike
On 6/08/20
Forgot to mention ...
dev = Django 1.11.15, Python 3.6 and 2.7 on Windows 10
staging = Django 1.11.15, Python 2.7 on Ubuntu 16.04 (no GUI) Apache 2.4
Sorry
Mike
On 6/08/2018 1:44 PM, Mike Dewhirst wrote:
I have a test which succeeds in development but fails with Apache in
staging ...
Here
, pk=pk)
# login is needed if there are questions/answers
if course.login_needed or request.user.is_authenticated:
return course_login_required(request, course=course)
else:
return course_login_not_required(request, course=course)
What am I doing wrong?
Thanks
Mike
--
Yo
Sorry to bother you. Just discovered the HiddenInput widget.
M
On 24/07/2018 5:40 PM, Mike Dewhirst wrote:
show_hidden_initial is an undocumented API feature. It defaults to False.
Is the correct way to specify a field as hidden in Django to make that
attribute True in the form?
Thanks
show_hidden_initial is an undocumented API feature. It defaults to False.
Is the correct way to specify a field as hidden in Django to make that
attribute True in the form?
Thanks
Mike
--
You received this message because you are subscribed to the Google Groups "Django
users"
On 24/07/2018 9:25 AM, roflcopterpaul wrote:
Hello, everyone!
I am quite the scrub, having written a few super basic apps and
currently going through the Django tutorial. As I'm going through the
tutorial (creating a "polls" app), I've been perplexed by something
the whole time that I haven't
Try http://127.0.0.1:8000
On 12/07/2018 6:40 PM, Umar Kambala wrote:
Kasper thanks for your brotherly advice, please I will be glad next
time u add me a link. But I came across another error, when I run
python manage.py runserver everything work find but when I enter
127.0.0.1 I gets "no int
I've used both. If you have a choice use Postgres.
Mike
Connected by Motorola
ABHISHEK PARMAR <150305105...@paruluniversity.ac.in> wrote:
>Should i use postgres or mysql ?
>
>--
>You received this message because you are subscribed to the Google Groups
>"Djang
On 23/06/2018 6:17 PM, Melvyn Sopacua wrote:
On zaterdag 23 juni 2018 02:01:06 CEST Mike Dewhirst wrote:
Is there a python singleton pattern which might work?
No, cause the startup is done in 2 different processes which do not share
state. So both processes will have a "new singleton&q
vate" variable which must not be referred to (even in read
access) from outside the module.
Hope this helps.
Regards
Eric
*From:* django-users@googlegroups.com
on behalf of Mike Dewhirst
*Sent:* Saturday
Is there a python singleton pattern which might work?
Connected by Motorola
Melvyn Sopacua wrote:
>On donderdag 21 juni 2018 16:23:23 CEST clavierpla...@gmail.com wrote:
>
>> If it helps, here is the reason I need to override this multi-instantiation
>> behavior: my application launches a multi
ss it relies on Python
method resolution order (MRO) see ...
https://www.python.org/download/releases/2.3/mro/ (introduced in Python
2.3)
You may be aware of http://ccbv.co.uk/ with its very comprehensive
documentation of Django CBVs. Well worth a visit if you haven't seen it.
Mike
which I know takes that approach is here ...
https://simpleisbetterthancomplex.com/series/beginners-guide/1.11/
... and others may be found here ...
https://hackr.io/tutorials/learn-django
Cheers
Mike
* I have recently installed
https://github.com/ubernostrum/pwned-passwords-django in one o
Maybe you can find an old backup of your models and create a new database from
them. Then overwrite the old models with your latest ones and make migrations
again. Those should suffice to replace the deleted migrations.
Connected by Motorola
Leif wrote:
>Dear Django Experts:
>
>
>Somehow I de
Take a look at Django REST Framework
http://www.django-rest-framework.org/
Haven't used it myself but I'm planning to one of these days.
Cheers
M
On 6/06/2018 11:35 AM, Django Girls Bauchi wrote:
Hello
Response pls
On Tue, Jun 5, 2018, 10:46 PM Django Girls Bauchi
mailto:bau...@djangogirls
ent=2
--verbosity=0 --natural-primary --natural-foreign --all > dump.json
Note the settings arg which is required for manage.py to find the
correct database if you don't have DJANGO_SETTINGS_MODULE established in
your environment.
Mike
Regards,
Bernd.
--
You received this message
On 31/05/2018 1:56 PM, Caleb Bryson wrote:
So i am trying to create a directory with a Home,Blog,and Contact
selection. But every time i click on one of them they all go back to
the home page.
It feels like your urls.py is insufficiently fleshed out or maybe your
home page url isn't fully for
On 31/05/2018 11:45 AM, Caleb Bryson wrote:
I am getting a attribute error when i try to run my server. does
anyone know what i can change in this code to fix that?
Try indenting the __str__ method so it is within the scope of the Post class
from django.db import models
class Post(models.Mod
On 29/05/2018 10:10 PM, Melvyn Sopacua wrote:
On dinsdag 29 mei 2018 11:03:56 CEST Mike Dewhirst wrote:
> Also, despite using decimal.Decimal under the covers it wants its money
> as strings.
>
> Python 3.6.3
>
> >>> from money import money
> >
)
AUD 23.45
>>> money.CURRENCY['AUD'].decimals
2
>>> money.CURRENCY['AUD'].symbol
'$'
>>> money.CURRENCY['AUD'].name
'Australian Dollar'
>>>
Still thinking about this.
Mike
--
You received this message bec
On 29/05/2018 11:44 AM, Mike Dewhirst wrote:
On 29/05/2018 11:04 AM, Dylan Moreland wrote:
Hello,
I'm building an employee performance tracker for my company, and I'd
like each employee to be able to view their own infractions (late to
a shift, missed punch, etc.) and no
On 29/05/2018 11:04 AM, Dylan Moreland wrote:
Hello,
I'm building an employee performance tracker for my company, and I'd
like each employee to be able to view their own infractions (late to a
shift, missed punch, etc.) and no one else's, obviously. I plan to use
the built-in Django admin int
On 29/05/2018 6:06 AM, Simon McConnell wrote:
On Mon., 28 May 2018, 7:50 pm Mike Dewhirst, <mailto:mi...@dewhirst.com.au>> wrote:
On 24/05/2018 12:03 PM, Mike Dewhirst wrote:
> On 23/05/2018 12:31 PM, Simon McConnell wrote:
>> I'm in a similar boat at the
On 29/05/2018 6:06 AM, Simon McConnell wrote:
https://github.com/limist/py-moneyed/blob/master/moneyed/localization.py
only has the localisation configured for a handful of currencies, and
not our precious AUD :). The shortest party would be adding them all
in or doing https://github.com/limi
On 24/05/2018 12:03 PM, Mike Dewhirst wrote:
On 23/05/2018 12:31 PM, Simon McConnell wrote:
I'm in a similar boat at the moment. There
is https://github.com/vimeo/py-money too.
I looked at that but it probably won't ever support exchange rates.
Not sure yet if that is a show stopp
tml side of things in the Mozilla
Developer network website when I recently got some video streaming happening. I
looked for webm format and seem to remember audio being mentioned at the same
time.
Good luck
Mike
Connected by Motorola
ade desmond wrote:
>How do i handle audio streamin
(or might not) be
enough to suggest a timely approach.
Mike
Connected by Motorola
DjamgoNewbie wrote:
>I have worked with WordPress but I inherited an already made website built
>with Django. Is there a WYSIWYG app that I can use to update/edit the Django
>site without me having
Babel yet. But it is on the horizon.
I'm beginning to see why Django doesn't (yet?) have a built-in
MoneyField and I'm still interested in experience with differences
between them.
Mike
https://github.com/python-babel/babel
On Tuesday, 22 May 2018 11:25:04 UTC+10, Mike De
rcuit more detailed analysis of these
packages and perhaps others I haven't yet found. If one is on the
horizon for Django I'll just go with that.
Thanks
Mike
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubs
ofile and roles with permissions in groups. I also
have a bunch of is_author(), is_editor(), is_consumer() methods in view
utils so I can do non-permission related stuff as well.
Mike
Hope it helps!
On Wednesday, May 16, 2018 at 11:53:58 AM UTC-3, Bill Torcaso wrote:
I inherited a s
On 20/05/2018 3:52 AM, Melvyn Sopacua wrote:
On donderdag 17 mei 2018 00:44:32 CEST Mike Dewhirst wrote:
More advanced users tend to focus on the more advanced problems and
that's the way it should be.
Not always true. You tend to focus on things that show research and effort.
The lev
official Django tutorial established as
working code for those people who learn by examining code rather than
reading docs.
That would be a task for someone who has recently picked up Django and
understands the sort of commenting such code needs for beginners.
What do you think?
Mike
On Tuesda
browse the source and read the docstrings and comments. A comment in
code might also carry a link to the documentation. Beginners who have
trouble with documentation should still be able to figure out the actual
code.
Mike
--
You received this message because you are subscribed to the Google Gr
On 14/05/2018 12:11 PM, Alexander Joseph wrote:
Thanks Mike, I will check that out!
I may have found another solution this afternoon too. Since the user
puts in the week start date I think I might be able to use datedelta
to the week start date so that Tuesday would be the week start date
On 14/05/2018 12:11 PM, Alexander Joseph wrote:
Thanks Mike, I will check that out!
I may have found another solution this afternoon too. Since the user
puts in the week start date I think I might be able to use datedelta
to the week start date so that Tuesday would be the week start date
On 13/05/2018 5:00 AM, Alexander Joseph wrote:
I'm building a timesheet app for employees and would like the
employees to be able to select a day of the week date based on what
the date was on Monday.
ie. the user inputs the Monday date of the timesheet, then for each
row they need to fill ou
On 7/05/2018 4:48 AM, Andrew Wrigley wrote:
Hi Mike, thanks for the reply. My understanding is --natural-X only
works if `natural_key`, `get_by_natural_key` are manually implemented
on the models. I think the process should work without doing that, but
I'm not sure why django orders the m
On 5/05/2018 1:19 AM, Andrew Wrigley wrote:
Hi all,
I'm trying to dump a database fixture, and load it again to run tests.
When I run `python manage.py test`, I get:
You need to --exclude all models with data not used in any tests.
Considering that tests should be run with known data, if
On 4/05/2018 7:02 AM, jt.oldn...@gmail.com wrote:
Thanks for the response Mike.
I generally don't like it when a design has to change to fit a framework,
I agree. My design is almost entirely in the models. I want an API to be
able to work without Django forms.
however, in this c
On 3/05/2018 10:33 AM, Mike Dewhirst wrote:
On 3/05/2018 7:00 AM, jt.oldn...@gmail.com wrote:
I'm new to Django and web development in general (C++ background) and
I've got amazingly far very quickly, but there's one thing I've been
struggling with for a couple days now
On 3/05/2018 7:00 AM, jt.oldn...@gmail.com wrote:
I'm new to Django and web development in general (C++ background) and
I've got amazingly far very quickly, but there's one thing I've been
struggling with for a couple days now :-(. Forgive me if I screw up
the lingo.
I've got a ModelAdmin pag
I'm not sure I understand the question, but here's my input:
* You can use either url() or path() and achieve the same thing
o However, I assume that the older url() is being deprecated, so
you should use the newer path() if your version supports it
* My cheat sheet is often the exa
as used in urls.py
3. in the view called from urls.py discovered the necessary determinant
and returned the appropriate sub-view
Works well and it is obvious to me now that this was the right way to
proceed in the first place.
Cheers
Mike
On 30/04/2018 4:37 PM, Mike Dewhirst wrote:
On 30/04
function be wrapped, not the test being done.
That all makes sense. Thanks again
Cheers
Mike
On Mon, Apr 30, 2018 at 1:24 AM, Mike Dewhirst <mailto:mi...@dewhirst.com.au>> wrote:
On 30/04/2018 3:35 PM, Stephen J. Butler wrote:
@login_required doesn't take a test f
tion is the the view function?
M
On Mon, Apr 30, 2018 at 12:26 AM, Mike Dewhirst <mailto:mi...@dewhirst.com.au>> wrote:
I'm pretty sure this is a not-understanding-python problem rather
than a Django problem but here goes ...
In a (FBV) view I'm t
ribute
error saying the function (presumably mine) does not have an
attribute 'user' ... like this ...
File "C:\Users\mike\envs\xxct3\train\course\urls.py", line 8, in
from .views import (finished_course_view, course_view, index_view,
for me. So
much so that I was easily able to expunge it from my overloaded
brainspace :)
Cheers
Mike
The challenge is if your production server already has data in it, and
uses Auto Incrementing Ids, then the ids from the development wont be
valid in the production server.
You also have
ev and prd. You are looking for pgdump to make a dump file and to
load at the other end you probably want dropdb, createdb and psql.
It is worthwhile writing a couple of scripts to manage that.
Mike
--
You received this message because you are subscribed to the Google
Groups "Django u
nd how do I use them for local development?
dev-a.py
from a import *
dev-b.py
from b import *
On Wednesday, 18 April 2018 04:53:56 UTC+1, Mike Dewhirst wrote:
On 17/04/2018 8:51 PM, sbarnett wrote:
> What is the best way to structure multiple settings files when
using
>
On 18/04/2018 6:51 AM, Andréas Kühne wrote:
Hi all,
I am hoping that someone has stumbled across a solution to a problem
that I have currently.
I have created an email templating system. Each template can contain
placeholders that will be replaced with live data (a bit like the
django templ
On 17/04/2018 6:27 PM, Adrien Cossa wrote:
Hi,
On 04/14/2018 02:38 AM, Mike Dewhirst wrote:
Does it actually stop users reading? If the entire migration happens
in a single transaction, the database (Postgres anyway) should remain
accessible until the moment it is committed.
Maybe you could
On 17/04/2018 8:51 PM, sbarnett wrote:
What is the best way to structure multiple settings files when using
the Sites framework?
I've already got a base settings file along with a local, staging and
production file which inherits from this and makes some changes/additions.
But now I need to
e pythonic ;)
Cheers
Mike
Connected by Motorola
PASCUAL Eric wrote:
>
>
>Hi Mikkel,
>
>
>When facing this type of situation, I tend to use one of these two options,
>depending on the number of model classes:
>
>
>if the number of classes is reasonable, I use a sin
Adrien
May I start a new thread to discuss with you the costs and benefits for
splitting your model. I have some big models (47 up to 76 columns) which
I have long thought are just too big. The splits would all have to be
1:1 with the core model.
Mike
On 13/04/2018 7:05 PM, Adrien Cossa
?
Mike
Connected by Motorola
Adrien Cossa wrote:
>Hi everybody!
>
>I would like to know what options exist when you have a huge migration that
>will obviously not run on your productive server.
>
>I have spitted a model in two smaller ones and wrote then a migration to
&
itchover so the customers don't get hurt.
hth
Mike
My only experience with changing backend database in Django was when I
changed one of my pet projects db from SQLite to Postgres which I did
in settings.py.
On Thu, Apr 12, 2018 at 8:59 AM, tango ward <mailto:tangowar...@gmail.com>>
On 12/04/2018 9:47 AM, tango ward wrote:
Hi Mike,
Thanks for the advice.
May I ask as well, on Django side, since we have already an existing
system, how should I adjust the fields that are existing from the dump
file to the Django? Should I just add fields in models.py?
Treat that as a
in my opinion items 5 and 7 above are super
critical.
Good luck
Mike
Thanks,
J
--
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
On 11/04/2018 7:51 AM, Utpal Brahma wrote:
{{ question.question_text }}
{% for choice in question.choice_set.all %}
{{ choice.choice_text }}
{% endfor %}
Try this ...
https://docs.djangoproject.com/en/2.0/#the-template-layer
I got this syntax in Writing your first Django ap
some other db issues.
Cheers
Mike
'
class AbstractSuperUser(models.Model): """ Abstract base class implementing superuser. Use this when you
need django-admin without Groups and Permissions. """ is_staff= models.BooleanField(default=False) is_superuser=
routing.py
from channels import include, route
from chat import consumers
from . import game_consumers
channel_routing = [
#game routing
route('websocket.connect', game_consumers.ws_connect_lobby,
path=r"^/lobby/$"),
route('websocket.receive', game_consumers.ws_re
On 3/04/2018 8:49 AM, Mike Dewhirst wrote:
On 2/04/2018 7:59 PM, Cictani wrote:
Hi,
You could rename your dev settings file to for example
'settings_dev.py' and only commit this file (add settings.py to
.gitignore).
I wrote a tiny utility to read a file and retrieve credentia
email_creds = getcreds(fname='smtp.host', project="{0}-prd".format(PROJECT))
EMAIL_HOST = email_creds[0]
EMAIL_PORT = email_creds[1]
EMAIL_HOST_USER = email_creds[2]
EMAIL_HOST_PASSWORD = email_creds[3]
DEFAULT_FROM_EMAIL = email_creds[4]
#EMAIL_USE_TLS = True
EMAIL_BACKEN
the mixture. No empty records and an unlimited number of
ingredients.
If you are interested you can examine the working system. Let me know
off-list and I can give you a login.
Cheers
Mike
(P.S: I have to claim that each stoichiometry correspond to one
metabolites in the reaction, like
On 27/03/2018 5:08 PM, prince gosavi wrote:
Thanks for the reply but it is not working for me.
When i check the page source of the loaded page the 'query.css' is not
loaded.
Is it because of the urls? or path? or something else.
here is my static settings:
|
settings.py
STATIC_URL ='/static/'
S
ock.super introduces any pre-existing content of that block in the
template you are extending.
HTH
Mike
||
|
{% block nav-query %}Query{%
endblock %}
{% block content %}
{% csrf_token %}
{{ form }}
{% endblock %}
Enter code here...
|
On 21/03/2018 1:17 PM, sum abiut wrote:
Hi,
I am planning to build a survey app that allow the administator to add
new questioner and the question to be answer by the users.But i am
having trouble figuring how to get started. Just wondering if i need
to have two models one for the answes and a
mentions a few video apps and one of those
would probably do the trick. Does anyone have any recommendations?
The use case is on-line training software where you upload a video so
the students don't have to be able to read the instruction.
Thanks for any input.
Cheers
Mike
--
You received
.
Wow!
Thank you. Ain't Python marvellous!
Mike
- Peter of the Norse
On Feb 15, 2018, at 5:55 AM, Mike Dewhirst <mailto:mi...@dewhirst.com.au>> wrote:
On 15/02/2018 10:19 PM, Hanne Moa wrote:
On 2018-02-06 12:51, Mike Dewhirst wrote:
Thank you. I think this is where we probably
On 15/03/2018 6:15 PM, Mike Dewhirst wrote:
Since getting Firefox 59.0 yesterday some of my sites were not
displaying properly. They work normally in Chrome. Admin sites are
working OK.
Looking at 'View source' everything is there but just not rendered.
Comparing source between
difference which seems to have fixed my problem. For now anyway.
I had ...
Changing that second line to ...
... seemed to fix it.
I'm guessing Firefox is slightly more rigorous and my html was inadequate.
Cheers
Mike
--
You received this message because you are subscribed to th
On 13/03/2018 4:55 PM, Craig de Stigter wrote:
Cheers Mike
That deprecation notice says to me that Context itself is not
deprecated, but the `current_app` argument is. I don't think that's a
problem for us as I don't think we've ever used it.
Perhaps I can clarify.
nd adjust the version part of
it and travel back in time you can see there is no change until you get
back to 1.9 from which I copied the above section.
Hth
Mike
Has this confused anyone else? Is this a desirable/necessary situation?
I think in order to have consistent template usage in o
"id_answer_e">E:maxlength="32" id="id_answer_e" /> for="id_answer_f">F:maxlength="32" id="id_answer_f" />
The correct answers for the first two are 'Yes' or 'yes' or 'y' the
correct answer for the t
On 1/03/2018 5:44 PM, Bernd Wechner wrote:
Mike,
Yep, adding pk as a final tie breaker is trivial, but not the issue
;-). Alas adding a sequencing field is not an option because I am
looking for a generic solution, akin to what the admin site on Django
offers, I have a model browser that I
On 1/03/2018 10:50 AM, Bernd Wechner wrote:
Julio,
Thanks for giving it some though. But I think you misread me a little.
I am using the get() only to illustrate that the precondition is, I
have a single object. The goal then is find a neighboring object (as
defined by the ordering in the mod
On 1/03/2018 3:20 PM, Matemática A3K wrote:
On Wed, Feb 28, 2018 at 12:46 AM, Mike Dewhirst <mailto:mi...@dewhirst.com.au>> wrote:
On 28/02/2018 1:58 PM, Alexander Joseph wrote:
Sorry, I think my question was confusing. What I want to do is
allow the user
is that you need to be comfortable in your own
brainspace. If you can think about slicing off the easy bits into
separate small apps it will leave the main game slightly more simple.
And that is always good!
Cheers
Mike
--
You received this message because you are subscribed to the Google Gro
=True and
blank=True in the ForeignKey ought to work.
Mike
Thanks for your reply
On Tuesday, February 27, 2018 at 7:45:51 PM UTC-7, Mike Dewhirst wrote:
On 28/02/2018 1:26 AM, Alexander Joseph wrote:
> Is there a way to make a form field or model field either a foreign
&g
ields/#django.db.models.ForeignKey.limit_choices_to
hth
Mike
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...@g
On 23/02/2018 2:56 AM, 'Giles german' via Django users wrote:
Dear all I am wondering if you can help me??
I haven't looked too closely at your code but there are a couple of
things I would do differently.
1. I don't use Caps for field names. Too easy to confuse myself with
identical class
On 23/02/2018 11:49 AM, anurag bhadauriya wrote:
i am using django-1.11.6. whenever i open my admin panel and login to it then
it looks like the simple html file. no any css files are loading .The
interface i am seeing is totally different than that of the tutorials using
which i am learning.
On 20/02/2018 11:51 PM, Andy wrote:
use django-select2
Had a look at the docs and django-select2 doesn't address this use case.
However, I can see I will need it for ORM related selections in the near
term.
Thanks Andy.
Am Dienstag, 20. Februar 2018 01:17:26 UTC+1 schrieb Mike Dew
On 20/02/2018 11:16 AM, Mike Dewhirst wrote:
Here is an example of get_choices() output ... it comes from a method
on the Question model.
[('A', 'A - Once?'), ('B', 'B - Twice?'), ('C', 'C - Four times?'),
('D', 'D
Here is an example of get_choices() output ... it comes from a method on
the Question model.
[('A', 'A - Once?'), ('B', 'B - Twice?'), ('C', 'C - Four times?'),
('D', 'D - Twelve times?'), ('E', 'E - Continously as changes are made?')]
It is available before the the answer form is instantiat
It's cool. Thank you!
понедельник, 19 февраля 2018 г., 15:21:31 UTC+3 пользователь Etienne
Robillard написал:
>
> Check this out:
> https://stackoverflow.com/questions/20306981/how-do-i-integrate-ajax-with-django-applications
>
> Etienne
>
> Le 2018-02-19 à 07:12, Mik
I don't get how to do it. I need to display a message "Hello world" using
framawork messages with Jquery/Ajax
I can do it without Jquery/Ajax but it's not good.
The user clicks the link and depending on a condition or to send him
according to the reference or to display the message without rebo
Thanks for any light
Cheers
Mike
--
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, s
On 15/02/2018 10:19 PM, Hanne Moa wrote:
On 2018-02-06 12:51, Mike Dewhirst wrote:
Thank you. I think this is where we probably need to go. I asked the original
question because I'm hoping the project will reach a tipping point and start to
accumulate a growing number of multilingual
u will need to manage database credentials using
identical source code in your settings. This is because after you merge
your source from machine to machine in either direction the Django
settings need to see the database. But that's a separate question.
hth
Mike
--
You received this me
e our first multinational user but they only operate in the English
speaking world so no pressure at the moment.
I really appreciate that pointer
Cheers
Mike
On Monday, February 5, 2018 at 6:56:00 PM UTC-5, Mike Dewhirst wrote:
Chemical names start with both upper and lower case as we
On 6/02/2018 10:27 PM, Julio Biason wrote:
Hi Mike,
One thing that occurs me is that you can override the model save() to
update another field -- one that the user doesn't have access. On that
function, you will write a new field, say `sortable_name` in which
you'll transfor th
501 - 600 of 2348 matches
Mail list logo