I am building a dictionary translation app that translates from one
language to another, and I would like for the admin to be able to enter in
two words, and their associated languages, these two words would, then get
stored as a translation. Currently there is no way of doing this (Inline
does
I tried using this, but it doesn't necessarily work or let me enter in two
words that get turned into a translation. Could you elaborate on how inline
would help?
On Monday, September 12, 2016 at 10:39:29 PM UTC-7, ludovic coues wrote:
>
> Have you looked at
> https://docs.djangoproject.com/en/
Thank You Mike, I understand what you mean and I've made the changes, but
it doesn't help me with my original problem, unfortunately.
On Tuesday, September 13, 2016 at 12:53:51 AM UTC-7, Mike Dewhirst wrote:
>
> On 13/09/2016 4:06 PM, Hanh Kieu wrote:
> > "So your Translation needs a FK to each
there is no m2m relation in products and cart model
*carts/models.py*
class CartItem(models.Model):
cart = models.ForeignKey("Cart")
item = models.ForeignKey(Variation)
quantity = models.PositiveIntegerField(default=1)
line_item_total = models.DecimalField(max_digits=10, decim
Thanks Erik,
i think that should do the trick.is there a way to covert the date column
straight from the sql query or from the template?
cheers
On Tue, Sep 20, 2016 at 9:17 PM, Erik Cederstrand wrote:
>
> > Den 20. sep. 2016 kl. 01.40 skrev sum abiut :
> >
> > Hi,
> > how to you convert from
No problem. Thanks Tim.
On Wednesday, 21 September 2016 09:47:44 UTC+10, Tim Graham wrote:
>
> Sorry for the inconvenience. We don't have a good solution right now. I
> tried training the filter by marking your submission as valid. Alternately,
> you just need to rephrase your comment until the
On Sep 20, 2016 5:16 PM, "Netesy Emmanuel" wrote:
>
> My View.py
>
> class EducationCreate(CreateView):
> model = Education
> form_class = EducationForm
>
This is the linkage, so it looks like you already have it in place. Is
there a specific issue you are having?
> def form_valid(se
Hi,
You have to use a form of keyword arguments to provide parameters in {% url
%} tag.
For example,
{% url post_view post_id=post_id %}
the former post_id is the argument name in your view function, the latter
post_id is the variable name in your template context.
If you have more than one
My View.py
class EducationCreate(CreateView):
model = Education
form_class = EducationForm
def form_valid(self, form):
form.instance.student = self.request.user
return super(EducationCreate, self).form_valid(form)
@method_decorator(login_required)
def dispatch
Sorry for the inconvenience. We don't have a good solution right now. I
tried training the filter by marking your submission as valid. Alternately,
you just need to rephrase your comment until the filter accepts.
On Tuesday, September 20, 2016 at 7:00:41 PM UTC-4, Ben Whale wrote:
>
> Hi all
>
>
Hi all
I'm unable to comment on a bug. When I attempt to comment on bug #27234 I
receive the message, "Submission rejected as potential spam
SpamBayes determined spam probability of 97.12%".
What do I need to do to allow me to comment?
Ta
--
You received this message because you are subscrib
The maintenance is complete. If you find any issues creating or updating
tickets, let me know. Thanks!
On Tuesday, September 20, 2016 at 1:17:11 PM UTC-4, Tim Graham wrote:
>
> https://code.djangoproject.com/ is going down shortly for an upgrade.
> I'll send an update if it takes more than an ho
Le 2016-09-20 à 11:25, Michal Petrucha a écrit :.
If that doesn't help, try checking if there are any stale leftover
.pyc files, and try removing those.
Good luck,
Michal
That did the trick... There was a old .pyc file in my Django source tree
from a old branch...
Thanks,
Etienne
--
Eti
Hi Alessandro,
I have replaced the only occurrence of SortedDict with
collections.OrderedDict in app_plugins, but the issue persist.
Is it possible that the templatetags module is being cached somehow by
Django ?
Thanks,
Etienne
Le 2016-09-20 à 08:27, Alessandro Madruga Correia a écrit
https://code.djangoproject.com/ is going down shortly for an upgrade. I'll
send an update if it takes more than an hour.
--
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 e
I'm not sure if PyMySQL is compatible, but it's not tested by the Django
team.
I'd use mysqlclient as documented:
https://docs.djangoproject.com/en/stable/ref/databases/#mysql-db-api-drivers
On Tuesday, September 20, 2016 at 11:18:08 AM UTC-4, Alessandro Madruga
wrote:
>
> pip install MySQL-pyt
On Tue, Sep 20, 2016 at 11:21:20AM -0400, Etienne Robillard wrote:
> Hi Alessandro,
>
> I have replaced the only occurrence of SortedDict with
> collections.OrderedDict in app_plugins, but the issue persist.
>
> Is it possible that the templatetags module is being cached somehow by
> Django ?
>
pip install MySQL-python
On Tue, Sep 20, 2016 at 12:12 PM, Carlos Andre wrote:
> 1º install setuptools;
> 2º install PyMySQL;
>
>
> 1º --> https://pypi.python.org/pypi/setuptools
> 2º --> https://github.com/PyMySQL/PyMySQL
>
>
> 2016-09-20 11:01 GMT-03:00 fossildoc :
>
>> I am a newbie to Django
1º install setuptools;
2º install PyMySQL;
1º --> https://pypi.python.org/pypi/setuptools
2º --> https://github.com/PyMySQL/PyMySQL
2016-09-20 11:01 GMT-03:00 fossildoc :
> I am a newbie to Django. I am running Django 1.10.1, Python 3.5.2, and
> MySQL server 5.7.15. When I run migrate, I get t
hi,
this one :
{{i.file_name}}
should be
{{i.file_name}}
it will point to your local webserver if in local dev (
http://127.0.0.1/media/filename) , and in prod will be from your domain (
http://yourdomain.com/media/filename)
Cheers,
Mulianto
On Mon, Sep 19, 2016 at 10:59 PM, 'Tom Evans' via
I am a newbie to Django. I am running Django 1.10.1, Python 3.5.2, and
MySQL server 5.7.15. When I run migrate, I get the message "No module named
MySQLdb". There are various posts which say that MySQLdb is not supported
by Python 3, and there are a couple of posts which offer solutions, but
on
>
> {%url url_name url_params%}
>
> where url_params as 'pk=object.id' or 'page=page.number'
>
Here have an example
https://docs.djangoproject.com/en/1.10/topics/http/urls/#reverse-resolution-of-urls
--
,= ,-_-. =. [] Alessandro Madruga Correia
((_/)o o(\_)) [http://counter.li.org]
On Tue, Sep 20, 2016 at 7:29 AM, Etienne Robillard
wrote:
> Hi,
>
> I'm trying to run Satchmo on Django 1.10. I have removed from the
> app_plugins.templatetags.app_plugins
>
> module the deprecated import of SortedDict. Could this import statement be
> cached by the Django cache backend ?
>
> I
So now, I'd like to do the following:
class AppConfig(models.Model):
my_content_type = ForeighnKey(ContentType)
wrote:
> Awesome -- thanks!
>
> On Mon, Sep 19, 2016 at 6:48 PM, Tim Graham wrote:
>
>> Do you know about https://docs.djangoproject.com
>> /en/stable/ref/contrib/contenttypes
Hi,
I'm trying to run Satchmo on Django 1.10. I have removed from the
app_plugins.templatetags.app_plugins
module the deprecated import of SortedDict. Could this import statement
be cached by the Django cache backend ?
I have replaced the only occurence of SortedDict by
collections.Ordere
Good day,
I'm getting import errors when I try to run a script to populate a database
using models. I'm new to django so it means I haven't done anything special
than follow djangobook and other beginner tutorials.
The script I would like to run is in the same folder as the models.py. I
figure
Hou to send parameters in url as string?
{%url url_name url_params%}
where url_params as 'pk=object.id' or 'page=page.number'
Please, help me, if you can
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop
I'm currently trying to allow users to upload photos to my site.
They will be sent to /upload to upload a photo which will (if the upload is
successful) take them to /edit/ where they will enter the name and tags to
the photo.
However, when I upload a 3.6MB .jpg to the site, I keep getting the
This issue has been resolved. Please ignore it. I had a hard-coded query to
debug a issue and it was not removed..Thanks for looking into it.
On Monday, September 19, 2016 at 10:07:02 PM UTC-4, premdjango wrote:
>
> compiler sql == SELECT "django_migrations"."app",
> "django_migrations"."name"
> Den 20. sep. 2016 kl. 01.40 skrev sum abiut :
>
> Hi,
> how to you convert from Julian date to a Calender date. I am pulling data
> from an MSSQL and i what to convert the Julian date to calender date before
> displaying data on my template.
If I understand your question correctly, that shou
Awesome -- thanks!
On Mon, Sep 19, 2016 at 6:48 PM, Tim Graham wrote:
> Do you know about https://docs.djangoproject.com/en/stable/ref/contrib/
> contenttypes/#generic-relations ?
>
>
> On Monday, September 19, 2016 at 12:30:01 PM UTC-4, Jonty Needham wrote:
>>
>> I want to have a model that has
2016-09-20 1:36 GMT+02:00 sum abiut :
> Hi,
> i am building an app using django, on login i want django to check for
> users in a group before login users.
> For example, i want to redirect users from a group to page when they
> login.
>
> please advise the best way to approached this.
>
> cheers
I've never used it, but this package appears to be made for converting
between Julian and Gregorian dates
https://pypi.python.org/pypi/jdcal
Good Luck
On Tuesday, September 20, 2016 at 2:42:29 AM UTC+3, suabiut wrote:
>
> Hi,
> how to you convert from Julian date to a Calender date. I am pulling
33 matches
Mail list logo