Start with the model layer. Use the admin interface to add some dummy data
and think about how you want the front facing pages/forms to look and
operate. Repeat as needed.
Mark
On Tue, May 9, 2017 at 9:03 AM, wrote:
> Hi everyone,
> My project consists of a web site which allows to mana
, the forms, and all the little glue pieces (files - is
settings.py etc) that make a django site.
A second thought - the previous developers must have had a way to deploy
the siteask them for those files and methodology.
Good Luck!
Mark
On Tue, May 16, 2017 at 4:57 PM, Joel McLaughlin
wrote
s, that is OK. Showing me one project where you really excelled (eg
see #4) is far better than a lot of poorly done projects with irrelevant
fluff surrounding them.
Good luck!
Mark
On Wed, May 17, 2017 at 11:55 AM, Mannu Gupta
wrote:
> Hi everyone,
>
> I have been learning on Django for
data)
The Document class has a field called 'title' and the Metadata class has a
field called 'name'. How do I accesses these two fields from the class
DocumentMetaData so the string output is something like - <
metadata.name>?
Thanks!
Mark
--
You received this messa
from a drop down list (good). However, the bad news is
that the relationship between the MetaData and MetaDataValue is not
preserved.
For example, say I have MetaData 'people' with values John, Mark, Allison,
and 'events' with values birthday, wedding, funeral. When I add a
Docu
On Sun, Jun 25, 2017 at 6:56 PM, Constantine Covtushenko <
constantine@gmail.com> wrote:
> Hi Mark,
>
> I have some questions to you.
> 1. Does any of MetaData have predefined list of MetaDataValues?
>
No, I want to add them in real time as Documents are uploaded.
>
ocumentMetaData to only refer to a single
> document and a single metadata then change the ManyToManyField for a
> ForeignKey
>
That is not what I want.
>
> If you do that then you can do self.document.title and
> self.metadata.name to access those fields.
>
> On 6/25/17, M
ield(Document)
metadata = models.ManyToManyField(MetaData)
metadatavalue = models.ManyToManyField(MetaDataValue)
The problem I am having is that when I add data to the DocumentMetaData
screen in the admin portal, the model does not maintain the relationship
between the MetaData and the MetaDataName. For e
ith a world readable model?
In what situations would it be irrelevant and in what situations would it
be a huge security risk?
Thanks!
Mark
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiv
Hi Arun!
If tomcat is required for this project, then are you supposed to code the
project in java? If so, then python and django are not what you need. Maybe
Ruby, or Wicket is better suited for your project.
Mark
On Tue, Jul 4, 2017 at 7:26 AM, Vivek Shrivastava
wrote:
> Well, I wo
I would think you have a advantage by knowing Python. I just started
learning both and i am not finding Django that hard.
On Thursday, July 13, 2017 at 7:51:50 PM UTC-4, Amir Pirmoradian wrote:
>
> Hey Guys, i'm a absolute beginner at Django. I started to learn django
> from https://www.djangop
nal coding outside of django.
Good luck!
Mark
On Sat, Jul 29, 2017 at 8:57 PM, Jack Twilley wrote:
> I have a Django app which keeps inventory. There are two relevant classes
> here, one named Jar and another named Crate. The Jar class has an
> attribute crate which is a foreign key
27;t think installing MySQL requires visual C++, but I am not
an expert.
Mark
On Mon, Jul 31, 2017 at 2:35 AM, Antonis Christofides <
anto...@djangodeployment.com> wrote:
> Hello,
>
> since you aren't experience, start easier and use SQLite. Mostly everyone
> (even the exper
okay, this is weird. If a user double-clicks the form submit button, even
tho POST should redirect, they still get 403 FORBIDDEN with csrf failed
message.
I think this is like a web developer question, is this some latency issue
with my browser, network or web server? I use Apache-2 httpd with
w
and pass that to the form. Is that the appropriate way to do something like
this?
Thanks,
Mark
--
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-u
correction - https://www.obeythetestinggoat.com/
On Sat, Aug 26, 2017 at 5:55 PM, Gerardo Palazuelos Guerrero <
gerardo.palazue...@gmail.com> wrote:
> Hi,
> I'm on the same situation, still learning.
>
> Besides the ones mentioned (I specially liked a lot the DjangoGirls
> tutorial), there quite
Linode is a better buy (more ram for the buck) than Digital Ocean. Both are
good hosting companies.
Mark
On Tue, Aug 29, 2017 at 9:18 PM, James Schneider
wrote:
>
>
> On Aug 29, 2017 5:18 PM, "Thomas Campion" wrote:
>
> I tried following vendor instructions for inst
select box, then you need some
javascript to perform a real-time update to your admin page before to
display the correct price. There are frameworks available as django apps
for doing this.
Mark
On Mon, Sep 4, 2017 at 10:19 AM, Omer Iqbal wrote:
> Hi,
>
>
>
>
>
>
>
>
with some data, or is there another way the more closely ties the
data to the models?
Thanks!
Mark
--
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
readsheet to the database.
I am open to other suggestions!
Thanks!
Mark
On Thu, Sep 7, 2017 at 10:29 PM, wrote:
> hi,
> think about problem, you mean initial data? see this(https://docs.
> djangoproject.com/en/1.11/howto/initial-data/)
> django way suggestion:
> 1. django comman
Brilliant idea! Did not know these importers existed.
Thanks!
Mark
On Fri, Sep 8, 2017 at 3:11 PM, Jani Tiainen wrote:
> Hi.
>
> We actually implemented spreadsheet importer for one of our clients.
>
> It was relatively trivial. Just read the row from spreadsheet put it to
ngo import/exporter.
A spreadsheet seems the easiest way to keep a list of the metadata names
and metadata values for now. I am also looking at a csv -> json converter
to use with "manage.py loaddata".
Still open to other suggestions to simplify this problem!
Thanks again,
Mark
On Fri
r the admin change page. Not
my page template, but plain vanilla django admin templates.
Thanks!
Mark
--
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
n to be deleted when all
the associated Documents are deleted?
Thanks!
Mark
--
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...@
Where can I find the message that the document was saved properly and
remove it from the messages list?
Thanks!
Mark
--
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, sen
The django docs are excellent. However, if you are more of a book person,
then try Try Two Scoops of Django (http://twoscoopspress.org/) - well
written and updated.
Mark
On Fri, Jul 31, 2015 at 6:33 AM, rmschne wrote:
> I'm no way an advanced user, but I found the book simplistic and n
but you
want to force the user to specify a value when updating them (so in that
moment the blank=True will enforce this behaviour).
> Regards
> Ben
Regards,
Mark
--
. ''`. | GPG Public Key : 0xCD542422 - Download it from http://is.gd/fOa7Vm
: :' : | GPG Fingerprint : 082
hanks!
Mark
--
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, send email to django-users@g
demo was not properly designed to show the list of all the inputted tags.
Should I use a different method? Has anyone used this module? Thanks.
- Mark
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from thi
I think the answer you need is available through the docs,
at
https://docs.djangoproject.com/en/1.8/topics/forms/modelforms/#changing-the-queryset
(I point to that because it does a much better job of explaining the answer
than I can).
You're passing in an object - an instantiated form - into
Can you provide the HTML you're using to render the formset view?
On Thursday, 15 October 2015 21:43:29 UTC+1, Fellipe Henrique wrote:
>
> Hello,
>
> I try to use "inlineformset", but for each record (each form) django
> create and run 20 selects (same select), I take the one snapshot [1].
>
> C
This is a JavaScript question more than it is a Django one, as your problem
is client-side. What browser are you running this in? I've just tried it in
Safari, Chrome and Firefox on a Mac and haven't come up against the same
issue.
What you're doing is slightly odd, as I'd normally recommend us
| perl -pe \
> 's/(.)/chr(ord($1)-2*3)/ge'
> *Fedora Ambassador: https://fedoraproject.org/wiki/User:Fellipeh
> <https://fedoraproject.org/wiki/User:Fellipeh>*
> *Blog: *http:www.fellipeh.eti.br
> *GitHub: https://github.com/fellipeh <https://github.com/fellipeh>*
>
I want to use a select2 widget to a manytomanyfield in django. There are
several django-select2 modules, but the documentation on all of them is
confusing. Can someone point me to a simple example of how to use a
select2 widget for a manytomanyfield? Thanks. - Mark
--
You received this
I just discovered django-select2-forms. It does exactly what I want, very
simple to implement.
On Tuesday, November 10, 2015 at 5:08:46 PM UTC-5, Mark London wrote:
>
> I want to use a select2 widget to a manytomanyfield in django. There are
> several django-select2 modules
Try this - http://lmgtfy.com/?q=python+tutorial
Mark
On Sat, Dec 5, 2015 at 12:49 AM, Davron wrote:
> HI!
> Could any python's gurus give me a some links,
> which leads to for a real comprehensive python-tutorial, Please.
> Thanks in advance!
>
> --
> You received th
One option would be to create a custom management command
(https://docs.djangoproject.com/en/1.9/howto/custom-management-commands/)
that checks for models with a `created_at < now - 1month`. You could then
run this, say once a day, using crontab
(https://help.ubuntu.com/community/CronHowto). He
please help on me upon that error
--
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, send email to
default image
if (obj.document_id.storage_file_name):
image = ''.format(image_link =
obj.document_id.storage_file_name.url, thumb_nail =
obj.document_id.storage_file_name.url)
return format_html(image)
Thanks!
Mark
PS Still working on defining the 'extrapretty
t of their job, they just look
pretty on the admin page. ;)
I am not sure how to debug this, as there are no error messages on the
console. How would you suggest I debug this?
Thanks!
Mark
class Document(Model):
document_id = models.AutoField(primary_key=True)
# Document states
PRI
c/refman/8.0/en/mysql-tzinfo-to-sql.html).
I am not sure of the time zone issue is a red herring or not. Anyone have a
suggestion on how to debug the problem?
Thanks!
Mark
On Thu, Jun 14, 2018 at 2:02 PM, Mark Phillips
wrote:
> I have two related models, Document and DocumentMetaData, and t
ent`.`document_id` *DESC*
The first part up to the first OR finds the one document created on
6/15/2018, but all the rest of the OR clauses just select all the rest of
the documents in the database, so no matter what date I query, I get all
the documents in the database.
Any ideas on how to get dat
data. I can't post the code I use, but this
outline should give you enough pointers to look in the Django docs and get
some examples from Google.
Good luck!
Mark
On Wed, Jun 27, 2018 at 6:23 AM, prateek gupta wrote:
> It has some limit- The configuration object can only be changed, the
selects, django autocomplete, django ajax, and this page of
projects - https://djangopackages.org/grids/g/auto-complete/.
Good luck!
Mark
On Fri, Jun 29, 2018 at 7:27 AM, Teja Yerraballe <
teja.yerraba...@aspiresys.com> wrote:
> Hi Team,
>
>
> I have created 4 models ( cl
most....
Mark
On Sat, Jun 30, 2018 at 1:21 PM, Joshua Kayode
wrote:
> Use postgresql, but you can find reasons not to!, the choice between
> MySQL and postgresql is more or less personal! Both have their strengths
> and weakness!
>
> On Jun 30, 2018 14:05, "ABHIS
ython
indentation rules" for more explanation.
There may be other things wrong with your code, but start by fixing this
one thing and try again!
Mark
On Mon, Jul 2, 2018 at 10:40 PM, Tamilvanan Anbalagan <
tamilanbala...@gmail.com> wrote:
>
> When i execute the makemigrations comm
https://www.google.com/search?q=Why+using+manage.py+command+in+CLI+instead+of+using+django-admin+command%3F+what%27s+the+difference+between+them%3F&oq=Why+using+manage.py+command+in+CLI+instead+of+using+django-admin+command%3F+what%27s+the+difference+between+them%3F&aqs=chrome..69i57j69i60.1333j0j8
https://www.google.com/search?q=What+is+the+best+route+to+take+to+build+a+general+CMS+using+Django%3F&oq=What+is+the+best+route+to+take+to+build+a+general+CMS+using+Django%3F&aqs=chrome..69i57j69i60.948j0j9&sourceid=chrome&ie=UTF-8
On Wed, Jul 11, 2018 at 5:21 PM, afj afj wrote:
> ---
>
> --
> Y
The point of my response was to let the original author know that he/she
should do some basic research first and then ask a more specific question.
A general question like the one in the subject line is pretty much a wast
of everyone's time, imo.
Mark
On Wed, Jul 11, 2018 at 6:24 PM, m
On Wed, 2018-08-01 at 00:26 -0700, im...@wsegames.com wrote:
> Here is my code
>
>
> class RegisterView(CreateView):
> form_class = RegisterForm
> template_name = 'accounts/register.html'
> success_url = '/success-membership/'
>
> def form_valid(self, form):
> url = "http
complicated (ie
simple case - some JavaScript, a special url, and a special view for that
url to get the data - there are examples in github for this as well).
Django does not do this for you out of the box. IMO, it all depends on how
comfortable you are with JavaScript.
Mark
On Mon, Aug 13, 2018 at 9:57
function withing the django framework.
Hope this helps!
Mark
On Wed, Aug 29, 2018 at 1:02 PM, ah wrote:
> Hi,
> I am trying to create a searchable dropdown list based on Django's model.
> I have a model M that has 6 objects [apple,orange,carrot,banana,
> kiwi,peach].
> I want
Please read the footer of every message for instructions regarding how to
unsubscribe. You have to do it yourself.
Mark
On Fri, Aug 31, 2018, 9:36 AM Nitesh Chaudhary wrote:
> Please unsubscribe my account neety...@gmail.com. I got unnecessary mail.
>
> --
> You received this mes
The Exception Type says the template does not exist. The Exception Value
says the missing template is personal/home.html.
The template personal/home.html does not exist or is not located where
django is looking for it.
Mark
On Tue, Sep 11, 2018 at 9:55 PM, Mohamad Rumaiz
wrote
://docs.djangoproject.com/en/2.1/howto/initial-data/, if you want to
now add some initial data to your tables.
Mark
On Sun, Sep 16, 2018 at 9:46 AM, Joel Mathew wrote:
> I tried to fix mysql problems in my database by dropping tables. When that
> didnt work, I dropped the database.
> I then recr
other!
Mark
On Wed, Oct 24, 2018 at 10:43 AM Ryan Gedwill wrote:
> I felt the same as you while learning django, and I already had some
> professional experience.
>
> It is extremely overwhelming to learn something like this on your own.
> Even people who go to college and get in
many more projects/blogs on this topic.
Good luck!
Mark
On Wed, Oct 24, 2018 at 3:55 PM <2012...@gmail.com> wrote:
> Hello,
>
> I confess that I have no experience with django.
> I have a project where the django app was written by developers and I want
> to add a few
Just a wild guess - do you have a cascade delete in your models that is
causing the deletion? Is a user deleting another object, and that is
triggering a cascade delete on a different model?
Mark
On Wed, Oct 24, 2018 at 4:22 PM RyanW wrote:
> Yes, it is. Are you referring to 'delete
mped on how to track down these strange messages.
Thanks for any help you can provide!
Mark
--
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-use
Take a look at this article...you aren't alone!
Mark
On Thu, Oct 25, 2018 at 4:50 AM Motaz Hejaze wrote:
> Edson my Bro ,
>
> all you need is to make simple thing , make just a traditional
> Home/About/Contact website , i can walk you through it if you want ..
>
> On Thu
transformations complete
successfully. I looked at django-fsm for this, but I think it will be
better to run the transformations as celery tasks than to block the site.
Does this plan make sense, or am I missing something regarding django and
celery/redis.
Thanks!
Mark
--
You received this
I have a class defined as a subclass of viewsets.ModelViewSet which
implements a destroy and retrieve function (among others). When calling the
api endpoint associated with this using the DELETE http method, the
retreive function is called rather than the delete function.
The call looks somet
data. Depends on
the situation, of course.
Mark
On Tue, Dec 4, 2018 at 10:51 AM Gerson David Vizquel Alemán <
gvizq...@gmail.com> wrote:
> Hola Jesus, la información que requieres cargar inicialmente en la base de
> datos es información fake o real?
>
> El martes, 4 de dici
Take a look at 'Q objects' in the django documentation -
https://docs.djangoproject.com/en/2.1/ref/models/querysets/#django.db.models.Q
Perhaps F objects will help.
https://docs.djangoproject.com/en/2.1/ref/models/expressions/#django.db.models.F
Mark
On Wed, Dec 5, 2018 at 9:12 AM Ar
http://www.catb.org/esr/faqs/smart-questions.html
On Tue, Dec 11, 2018 at 3:10 AM Waqas Ali wrote:
>
> --
> 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 dja
I have had good success with Linode, https://www.linode.com/. Their support
has always been helpful and quick.
Mark
On Thu, Jul 15, 2021 at 11:18 AM Sebastian Jung
wrote:
> Hello,
>
> In germany we have a provider where you get a root server for 7€ with 2
> cores. Name is netc
Are trying to save data for Customer that does not exist in your
CustomerData table yet. Because I think the error is tries to inform you
that Billing data can only be created for a customer that already exists on
you CustomerData
On Sunday, August 25, 2019 at 5:17:24 PM UTC+3, Asaduzzaman Sohe
some way to do a reverse
lookup on the document_id field to the DocumentMetaData model (since
admin_order_field needs a related model) so I can sort on the decade field
in the DocumentAdmin?
Thanks!
Mark
--
You received this message because you are subscribed to the Google Groups
"Djang
nctionally, it does
not matter as far as I can see. I am just wondering if there is a preferred
way, or a more "django idiomatic" way to do this.
Thanks!
Mark
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from
page, I used
Pillow to grab the first page of the pdf and make a jpg thumbnail of that
page. Then use similar code from the display_image above after the else
(for displaying an image on the page in the admin).
Hope that helps!
Mark
On Mon, Nov 25, 2019 at 7:46 AM 'Lucas Gärtner' via Dj
;utm_source=footer>
>>>> .
>>>>
>>> --
>> 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 dja
Hello, I'm interested
Regards,
Mark
On Wed, Feb 5, 2025 at 10:27 PM Nilesh Mishra
wrote:
> We require expert django developer on contract/hourly basis to lead our
> team for website development.
>
> Required skill set
>
> Python
> Django
> Mongodb
> React js
&
or this position. My email address is the link under my name on
our About Us page: Mark Liebman http://pictopia.com/pub2/people.html
Company: Pictopia.com
Located in Emeryville, California
May 2, 2009
Position: Python: Senior Development Architect/Engineer
Description: The Senior Development A
generated table names.
It may be that there isn't an easy or convenient way to colorize the output of
manage.py commands, but I am hoping I'm not the only person wanting to work
with Django in a dark color console window.
Thanks,
Mark
--
You received this message because you are subscribed
Hello everyone,
I'm puzzling for some time now to get a solution for my following problem.
I hope someone can help me.
I need some context to be filtered before it's rendered in a template. To
do this I got the following piece of code saved in
catalog_context_processors.py :
from catalog.mode
y case, I don't want to give up a abstract super classes until
I've satisfied myself that there is no way to accomplish this.
Any help that can be offered is much appreciated!
Thanks,
~Mark
--
You received this message because you are subscribed to the Google Groups
"Django
can inherit models.Model and will have no
> database table created.
>
> Michal Petrucha
>
> signature.asc
> < 1KViewDownload
Thank you Michal for your kind and useful help!
~Mark
--
You received this message because you are subscribed to the Google Groups
"Django
ook for or try next.
Any help is appreciated!
Thanks,
~Mark
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+
Sorry, that code from admin.py should read:
>> from app.models import Task
>> from django.contrib import admin
>> admin.site.register(Task)
~Mark
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
ut nothing
happens. Since I don't have access to my client's code, I've been testing
it out on w3schools and jsfiddle. Any clues on this?
Thanks,
Mark
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this g
Hello Django Community,
I am new to Django and tackling my first app outside of the tutorial. The
app I'm working on is a simple ticket system for build requests at my IT
Company. I only have one model 'Build', and I have checkboxes that denote
how far the build has been done.
I have a page t
an error when saving the form:
IntegrityError at /builds/8
NOT NULL constraint failed: app_build.requested_by_id
I want to use this form to update records in the database - do I need to do
something special in the view so that it knows which record to update?
Thanks again,
Mark
On Friday, Jun
ld,
'form': form })
Thanks all for help
On Sunday, June 18, 2017 at 12:51:00 AM UTC+1, Mark Alan Jones wrote:
>
> Thank you very much for the help Matthew, that is absolutely spot on, and
> greatly appreciated.
>
> My view now looks like this:
> def builddetails(re
501 - 583 of 583 matches
Mail list logo