Hey Andrew,
that's great! I'll take a look today. For some reason, I didn't receive
your response so I came up with a bit inefficient solution described in
this
[gist](https://gist.github.com/tricoder42/af3d0337c1b33d82c1b32d12bd0265ec).
I basically have another store with subscribers and then
On 01/18/2018 08:25 AM, Kubilay Yazoğlu wrote:
Hi. I want to implement a reporting system in which users report a
post simply by clicking the report button and later on, admins check
it whether the post is really against the policy of the website.
However, when I make a research about Django
I have 2 models Product and Image:
class Image(models.Model):
product = models.ForeignKey(Product, related_name='images', on_delete=
models.CASCADE)
parent = models.ForeignKey('self', blank=True, null=True,
verbose_name='original
image', on_delete=models.CASCADE)
image = models.Ima
import django.apps
django.apps.apps.get_models()
On Wed, Jan 17, 2018 at 8:31 PM, Tom Tanner
wrote:
> I've got the following in `management/commands/my_command.py`:
>
> from django.core.management.base import BaseCommand, CommandError
> from django.conf import settings
>
> import os.p
Hi,
You got answered otherwise but note that model name itself isn't unique.
"appname.modelname" is unique pair.
On 18.1.2018 3.31, Tom Tanner wrote:
I've got the following in `management/commands/my_command.py`:
|
fromdjango.core.management.baseimportBaseCommand,CommandError
fromdjango.con
Hey,
I'm working on upgrading to Django 1.11 and have encountered an issue with
simple_tags making use of context. I need to access the context within the
tag so declare the decorator as follows.
@register.simple_tag(takes_context=True)
However when I print the type of context at this stage i
Hi,
I have a desktop CRUD application that allows the same form to be opened
many times. Example: I can open a customer's (A) record in one
window/form and then from the first window/form (customer A's) open a
second or third window to process customer B or customer C etc... all
without clos
Hi,
You would have to either write a single page application that handles the
window creations (to make it more like an application). But the standard
way would just to open a new browser window - You can use the target
property on an a tag (for the link to the customer) to open a new page each
ti
Hi
I am confused about the timezone setting. I have my OS timezone set to
'Asia/Shanghai', and my MYSQL/Mariadb is also using 'Asia/Shanghai'
timezone. So i tried to configure the timezone in DJANGO settings.py
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'Asia/Shanghai'
USE_I18N = True
USE_L10N = T
Hi,
This actually doesn't have anything to do with Django, but frontend.
Basically you need to pick some Javascript UI framework that supports
features you're after.
Personally I've only used Dojotoolkit (free, nicely licensed) and ExtJS
(commercial).
On 18.1.2018 15.07, johnf wrote:
Hi,
Doesn't opening a new browser window imply using lots of memory?
Johnf
On 01/18/2018 05:11 AM, Andréas Kühne wrote:
Hi,
You would have to either write a single page application that handles
the window creations (to make it more like an application). But the
standard way would just to open a
But doesn't Django provide the template system? Do you replace the
template system with DoyuoToolkit?
Johnf
On 01/18/2018 05:43 AM, Jani Tiainen wrote:
Hi,
This actually doesn't have anything to do with Django, but frontend.
Basically you need to pick some Javascript UI framework that supp
Hi,
I don't think a package is neccesary for this (or at least I haven't
researched it) but from a very abstract perspective, inside the posts have
a boolean reported field, then you can render a button next to each post
and then when users click on it, you mark it as it is being reported. Then
Hi.
Yes and no. Usually you do SPA, a single page application, that just talks
to backend, Django in this case, using some means. REST api and JSON data
is quite common.
So basically you need only one template that fires up rest of your
interface.
There are though alternative approaches like usi
I have the backend covered with REST. When I try to google hybrid
google comes up with hybrid mobile apps. I did find fragment.js but I
don't see any type of real information on how to use it. I did find
some info on javascript and multi-windows but here again it looks like
it wants to rep
Hi,
I think you are not thinking this completely through correctly.
Django is a framework used to generate HTML pages. HTML pages render one
page at a time in one webbrowser window. That is the way HTML works.
You can via javascript do some funky things, like Single page applications
- but then
The reason I wanted Django was to insure that the data is valid (using
python). When they enter the data and the submit button is clicked I
want to be able to modify the response using python.
So what I'm hearing from the list - is that in general - people are not
using the Django template s
No John,
I don't think you understand what we are saying :-)
Like I said earlier - Django is a HTML framework - like ALL HTML framework,
it renders the pages you are seeing on the backend and presents the
information to the user. That is per design in the HTML world. You click on
a link and then
On 01/18/2018 05:25 PM, johnf wrote:
I have the backend covered with REST. When I try to google hybrid
google comes up with hybrid mobile apps. I did find fragment.js but I
don't see any type of real information on how to use it. I did find
some info on javascript and multi-windows but
I believe I understand what you are saying. But I was hoping that
Django offered the javascript framework that allowed multi-windows. To
get what I want I will have to use a javascript framework - I
understand. But that said, I have been researching several of the
javascript frameworks and t
Hello,
I have the following class:
==
class Silo(models.Model):
nave = models.ForeignKey(Nave, on_delete=models.CASCADE)
codSil = models.CharField(
'Código Silo', db_index=True, max_length=2, default='01')
notas = models.TextField(null=True, blan
Hi Jason,
Thanks for your suggestion. I found a solution for the Video seek problem
in django.
Make some changes in *django/views/static.py. *
*follow this link* :
https://github.com/satchamo/django/commit/2ce75c5c4bee2a858c0214d136bfcd351fcde11d#diff-272f1bbef1bc0bce0b959da83acb366d
Regards,
M
22 matches
Mail list logo