Re: ANN: Django website redesign launched

2014-12-16 Thread Mark Furbee
Looks slick to me! Clearly with mobile and responsive design in mind, but that's what we have to keep in mind these days. Great job to all contributors involved in this redesign! On Tue, Dec 16, 2014 at 4:01 PM, Cal Leeming wrote: > > Personally I really like it. > > The footer menu contrast is

Re: malicious requests?

2014-12-22 Thread Mark Phillips
just clicking on a link that contains a URL for your site with the trailing period. Mark On Mon, Dec 22, 2014 at 4:43 AM, Alex Haylock wrote: > Are there any known attack vectors that involve appending a period/ > full-stop to a sites domain name? > > My Django application throws

Re: Recommendations for hosting service?

2015-01-06 Thread Mark Phillips
+1 for Linode and Digital Ocean. Also, you can get 2 Virtual Private Servers on AWS EC2 for free for the first year. http://aws.amazon.com/free/ Mark On Tue, Jan 6, 2015 at 7:21 AM, claudiomet wrote: > I have digitalocean and no problems > > 2015-01-06 11:05 GMT-03:00 Vijay Khemlan

Re: Rearding django

2015-01-09 Thread Mark Phillips
Start with the tutorial. Mark On Fri, Jan 9, 2015 at 4:57 AM, Siddharth Singh wrote: > Hi > > I am new in django. I want to develop a website using django framework. > so, can anyone suggest me how will i approach which will fruitful for. > And which tools should i us

Instant Hosting for Django-CMS...No Setup Needed...Demo Inside

2013-12-12 Thread Mark Moss
*Top 3 challenges of a django-cms user:* 1. Are you trying to use django-cms, but got tangled with the complex setup process? 2. Do you wanna start publishing your content right away with django-cms, without wasting time on setup? 3. Are you looking for beautiful pre-installed the

Re: Instant Hosting for Django-CMS...No Setup Needed...Demo Inside

2013-12-21 Thread Mark Moss
will find the admin login info on this page -- http://gigapros.com/portal/django-cms-hosting - 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 dj

Re: How to deploy a django project in the web?

2013-12-21 Thread Mark Moss
You need to install Django framework on a machine that's connected to internet and then deploy your app into it. ----- - Mark *Need Django Framework? You'll Instant Django Hosting <http://www.gigapros.com/portal/django-hosting>* -- You received this message

Re: How to deploy a django project in the web?

2013-12-21 Thread Mark Moss
You need to install Django framework on a machine that's connected to internet and then deploy your app into it. ----- - Mark *Need Django Framework? You'll Love Instant Django Hosting <http://www.gigapros.com/portal/django-hosting>* -- You received this message

Re: Instant Hosting for Django-CMS...No Setup Needed...Demo Inside

2013-12-23 Thread Mark Moss
Thanks Tim for pointing the risks. By the way, the production VMs that are activated for actual customers have Debug=Off. Moreover, the demo VM is rebuilt every few hours to avoid any negative tweaking. -- - Mark *Instantly deploy Django-Cms with built-in 5 themes

Re: How to deploy a django project in the web?

2013-12-24 Thread Mark Moss
You may easily deploy your Django Apps on Gigapros. See -- http://www.gigapros.com/portal/django-hosting You get full rot access to the server and there's no restrictions at all. :) - Mark -- You received this message because you are subscribed to the Google Groups "Django users&

Re: How to deploy a django project in the web?

2013-12-24 Thread Mark Moss
All these 3 DB engines are available: MySQL, PostgreSQL & SQLite. This have now been updated on this page -- http://www.gigapros.com/portal/django-hosting All 3 Db engines run simultaneously and you may choose to selectively shutdown the ones that you don't need. - Mark -- You rece

Re: What to learn first?

2013-12-25 Thread Mark Moss
Since you are a newbee, just learn the basics of python first. And then jump to Django. At that point, learn any new python stuff as needed. - Mark *Instant Django Hosting <http://www.gigapros.com/portal/django-hosting>. No setup needed. Just start using!* -- You re

Re: VERY cheap django hosting?

2014-01-06 Thread Mark Moss
Try instant Django Hosting <http://www.gigapros.com/portal/django-hosting>by Gigapros.com ==> *http://www.gigapros.com/portal/django-hosting*<http://gigapros.com/portal/django-hosting> Don't waste your time on installation. Just start using django framework out-of-th

Re: building multiple dynamic websites on the fly

2014-01-07 Thread Mark Moss
challenges. ----- - Mark Try *Pre-installed Django Framework <http://www.gigapros.com/portal/django-hosting>* that works instantly out-of-the box! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscrib

Re: Question about Django, Heroku, and MySQL

2014-01-07 Thread Mark Moss
Moreover, make sure that port 3306 is opened in the remote server to accept mysql connection. That's the easiest thing we sometimes overlook. ----- - Mark Check this *Instant Django Hosting <http://www.gigapros.com/portal/django-hosting>*. No setup needed. Wo

Re: Django Install Error: " SyntaxError: future feature unicode_literals is not defined "

2014-01-08 Thread Mark Moss
de_literals-is-not-defined-pythondjangosphinx/>*). *Here is <http://forums.reprap.org/read.php?154,35312>* another similar problem with OSX. - Mark *Struggling with Django setup? Try the new Instant Django Hosting <http://www.gigapros.com/portal/django-hosting

Re: Django Website Development issue

2014-01-10 Thread Mark Moss
GigaPros provides ready-to-use Django Framework Hosting ==> http://www.gigapros.com/portal/django-hosting - Mark On Friday, January 10, 2014 8:38:19 PM UTC+5:30, Vijaya Reddy wrote: > > Thanks Tim for quick reply. > > I learned django framework using same tutorial. I have

Re: blog app

2014-01-11 Thread Mark Moss
Zinia is one of the best django based blog -- http://django-blog-zinnia.com/ -- - Mark *Django Framework Hosting <http://www.gigapros.com/portal/django-hosting>. Kick start instantly!* -- You received this message because you are subscribed to the Google Groups &

Re: Connecting to a MS SQL server from django

2014-01-14 Thread Mark Moss
The default port for MySQL is 3306. Have you tried that one? -- - Mark *Try this new Instant Django Hosting <http://www.gigapros.com/portal/django-hosting>* -- You received this message because you are subscribed to the Google Groups "Django users

Problems with Custom Tag Filter

2014-01-16 Thread Mark Phillips
alues. It seems that template tags can't take a tuple as a key for a dictionary. Also I read that one cannot chain a filter like this. Is this true? Any suggestions on how to read data from the dictionary values? Thanks! Mark -- You received this message because you are subscribed t

Problems Setting Up wsgi and Apache

2014-01-26 Thread Mark Phillips
environment with Python 2.7 on Debian Linux inside my LAN. Configuration file for apache /etc/apache2/sites-enabled/mom.conf: ServerName beagle ServerAlias beagle ServerAdmin mark@beagle DocumentRoot /var/www/mom WSGIScriptAlias /mom /home/django/django_projects/inventory

Re: Problems Setting Up wsgi and Apache

2014-01-27 Thread Mark Phillips
/). I added the user django to the group www-data, but I still get the forbidden message. I will try moving it to /var/www as you have it set up. Thanks again! Mark P.S. I got a good chuckle from your signature block - "Open Source: Without walls and fences, we need no Windows or Gates.&quo

Re: Problems Setting Up wsgi and Apache

2014-01-27 Thread Mark Phillips
. Perhaps another permissions problem? Thanks, Mark On Mon, Jan 27, 2014 at 9:11 AM, Timothy W. Cook wrote: > Mark, > I don't know if this will help. But I found (on CentOS) I had to add the > 'apache' user to the django users group. Not that it should matter, but it >

Re: Problems Setting Up wsgi and Apache

2014-01-27 Thread Mark Phillips
Fred, My apologies if my comment about "or" and "nor" offended you. That was not my intent. Thanks, Mark On Mon, Jan 27, 2014 at 9:49 AM, Fred Stluka wrote: > Mark, > > Most likely your Apache server is running as user "apache" in > group "a

Need Help Moving Database to production server

2014-01-27 Thread Mark Phillips
te the database, I did a mysqldump to a file on the development machine, then added it to the mysql server running on the production machine. The only change was in the database name, none of the tables changed. Is this the problem? Or, am I missing something else. Thanks! Mark -- You receiv

Re: Need Help Moving Database to production server

2014-01-28 Thread Mark Phillips
On Mon, Jan 27, 2014 at 11:51 PM, Mike Dewhirst wrote: > On 28/01/2014 4:51pm, Mark Phillips wrote: > >> I have a django project running on my laptop. I have (finally) managed >> to get it to work with apache on a production server. However, I still >> have a problem. When

Re: Need Help Moving Database to production server

2014-01-28 Thread Mark Phillips
On Tue, Jan 28, 2014 at 2:57 PM, Alex Mandel wrote: > On 01/28/2014 08:15 AM, Mark Phillips wrote: > > On Mon, Jan 27, 2014 at 11:51 PM, Mike Dewhirst >wrote: > > > >> On 28/01/2014 4:51pm, Mark Phillips wrote: > >> > >>> I have a django projec

Problems with admin.autodiscover()

2014-01-28 Thread Mark Phillips
any of the tables, nor do any of the tables appear in the admin site (although the login is correct and the page looks like an admin page). Any suggestions on the cause of the problem and a possible fix? I am not sure what other information to provide. Thanks, Mark -- You received this message

Re: Problems with admin.autodiscover()

2014-01-29 Thread Mark Phillips
t;> sys.stderr, e urlpatterns = patterns('', url(r'^inventory/', include('inventory.urls')), url(r'^admin/', include(admin.site.urls)), ) #if settings.DEBUG: #urlpatterns += patterns('django.views.static', #(r'media/(?P.*)&

Re: Problems with admin.autodiscover()

2014-01-29 Thread Mark Phillips
I found the problem. In my settings directory I have three files - base.py, dev.py, pod.py. I had a typo in both dev.py and prod.py - from .base import *, and it should have been from base import * (no period before base). The site and admin functions are working properly now! Thanks, Mark

Problems Sending Email From Django SIte

2014-01-31 Thread Mark Phillips
I also tried accessing a page that does not exist, and no email. My first question: How can I simulate/force an error on the site to get an email so I can make sure the site can send an email to the admins? Thanks, Mark -- You received this message because you are subscribed to the Google Gr

Re: Problems Sending Email From Django SIte

2014-01-31 Thread Mark Phillips
new project. I haven't found anything in the django docs that point to a module that I am missing. Thanks! Mark On Fri, Jan 31, 2014 at 6:06 PM, Mark Phillips wrote: > I have my django site setup on my production server, a Debian machine with > exim4 and django 1.6. I use smtp.cox.n

Re: Problems Sending Email From Django SIte

2014-01-31 Thread Mark Phillips
to believe my django app is mis-configured for sending email. In all other aspects, my app works as designed. Do you have any other helpful suggestions? Mark On Fri, Jan 31, 2014 at 7:26 PM, m1chael wrote: > Your mail server needs configuring. > > On Fri, Jan 31, 2014 at 8:15

Re: Problems Sending Email From Django SIte

2014-02-01 Thread Mark Phillips
x' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['192.168.5.126', 'localhost'] EMAIL_HOST = "localhost" EMAIL_PORT = 25 EMAIL_SUBJECT_PREFIX = "

Re: Problems Sending Email From Django SIte

2014-02-01 Thread Mark Phillips
Thanks.what email address...the one in admins? Mark On Sat, Feb 1, 2014 at 7:55 AM, m1chael wrote: > I'm just guessing now try adding the setting: > > DEFAULT_FROM_EMAIL='x...@x.xxx' > > On Fri, Jan 31, 2014 at 11:51 PM, Mark Phillips > wrote:

Question About South And Migrating to Production

2014-02-01 Thread Mark Phillips
empty, but I need to start filling it up soon. I think of the development database on the production machine as a testing database. Thanks, Mark -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Problems Sending Email From Django SIte

2014-02-01 Thread Mark Phillips
No joy.same reject error and no emall sent. I am stumped on how to diagnose this problem. Mark On Sat, Feb 1, 2014 at 8:59 AM, m1chael wrote: > yeah > > On Sat, Feb 1, 2014 at 10:51 AM, Mark Phillips > wrote: > > Thanks.what email address...the one in ad

Re: Problems Sending Email From Django SIte

2014-02-01 Thread Mark Phillips
Matt, That fixed it! Now, I get error messages as expected. Thanks so much for finding my missing comma!! Mark On Sat, Feb 1, 2014 at 5:15 PM, Matt Schinckel wrote: > Your ADMINS setting is incorrect. > > In python, the value ((a,b)) is not a 1-tuple containing a 2-tuple, as y

Re: Do I need an API?

2014-02-04 Thread Mark Phillips
I would second the idea for a full cms to solve your problem. Whether django, our some other cms. Mark On Feb 4, 2014 3:27 PM, "m1chael" wrote: > I think the point is: it's difficult for old-school tech people to > work with Django because there is a learning curve, and

Newbie Question - Where to store application constants?

2014-02-14 Thread Mark Phillips
ation? Thanks! Mark (1) Yes, I realize that terms 'constant' and 'changes sometimes' are mutually exclusive, but I hope you get the gist of what I am asking regardless of my imprecise description.. -- You received this message because you are subscribed to the Google Groups

Re: Newbie Question - Where to store application constants?

2014-02-14 Thread Mark Phillips
Thanks! Very clear and helpful. Mark On Feb 14, 2014 9:54 AM, "Bill Freeman" wrote: > It depends on the complexity of the issue. > > The price of gold does fluctuate. On the grounds that I might want to > change it more often than I would want to ssh in, edit a file,

Re: Newbie Question - Where to store application constants?

2014-02-19 Thread Mark Phillips
lowly, and from store to store So, I found creating a table called constants in the database allows me to change the value as needed and not have to touch the app code. Mark On Mon, Feb 17, 2014 at 10:20 AM, C. Kirby wrote: > I would suggest that your example, the price of gold, isn

Need Help with modwsgi and Apache

2014-02-26 Thread Mark Phillips
s file - the url of the router, the url from the Internet side, the LAN url of the production box, localhost, and 127.0.0.1. Thanks for any suggestions you may have! Mark -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

User constantly being logged out when using a site with 2 tabs open

2014-04-07 Thread Mark Steadman
yone's help. Apologies if this is a really fundamental thing. Many 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+

Re: (1364, "Field 'id' doesn't have a default value") - mysql issue?

2014-04-09 Thread Mark Furbee
You say you imported the database. Did you use syncdb to set up the tables? It sounds like your comment_id field in MySQL is not set as an auto-incrementing primary key field. Do you have access to that MySQL database to check, and or update that field definition? On Wed, Apr 9, 2014 at 2:42 PM,

How to override admin field widget?

2014-04-10 Thread Mark Phillips
a Decimal field and store that Decimal field in the database. How would I go about doing 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 em

Re: How to override admin field widget?

2014-04-11 Thread Mark Phillips
#x27;, 'length', 'width', 'height', 'status', 'sale_price', 'selling_costs', 'debt') list_filter = ['category'] search_fields = ['description'] form = MeasurementForm inlines = [NoteInline, ImageInli

Re: How to override admin field widget?

2014-04-11 Thread Mark Phillips
learning experience for me! Thanks for your help! Mark On Fri, Apr 11, 2014 at 7:37 AM, Lucas Klassmann wrote: > Hi! > > I will test you code, but for now, try rewrite the form class, this way: > > class MeasurementForm(forms.ModelForm): > width = forms.DecimalField(wi

Re: How to override admin field widget?

2014-04-11 Thread Mark Phillips
x27;t understand how to return a string to represent this layout. Also, how to control the size of the text boxes. Thanks again!! Mark On Fri, Apr 11, 2014 at 8:05 AM, Lucas Klassmann wrote: > Hi Mark, > > Because *TextInput *is a classe inside *forms *module and python is > *case-sen

Re: How to override admin field widget?

2014-04-11 Thread Mark Phillips
Athat makes sense. I was able to change the size of the text box in the widget file this way... forms.TextInput(attrs={'size':'5'}), Thanks again for all your help!! I learned a lot! Mark On Fri, Apr 11, 2014 at 9:03 AM, Lucas Klassmann wrote: > Hi Mark, >

windows service for django debug server

2014-04-19 Thread Mark Mikofski
I know this is a bad idea, but in case anyone was looking for a windows service for the django debug server (runserver.py) here is a hack ported from Trac: http://poquitopicante.blogspot.com/2014/04/django-debug-server-windows-service.html It depends on Mark Hammond's PyWin32

Re: Django

2014-04-19 Thread Mark Phillips
is also a good learning experience. As you come up with ideas along the lines of "How would I make my app do ..", search the documentation and THEN ask specific questions. Be creative and have some fun! Good luck! Mark On Sat, Apr 19, 2014 at 7:52 AM, François Schiettecatte < f

Re: Django

2014-04-20 Thread Mark Phillips
ngo answers" to specific problems/issues as well as how to use the framework. But everyone learns differently, so you need to do what is best for your style of learning. YMMV, Mark On Sat, Apr 19, 2014 at 10:53 PM, Srinivasulu Reddy < srinivasulur5...@gmail.com> wrote: > Hello

Re: Is Django the best for my web app ?

2014-05-15 Thread Mark Phillips
Amelie, Django may be overkill for your application. However, it is very easy to use, and takes care of all the little, and big, details of getting a web application to work. The documentation is very good, and the community is very helpful. Good luck! Mark On May 15, 2014 6:13 AM, "Amelie

Re: Is Django the best for my web app ?

2014-05-16 Thread Mark Phillips
al and had your application up and running. IMO, you may be overthinking this project, given the description you gave us. Mark On May 16, 2014 2:25 AM, "Amelie Bacle" wrote: > Thanks again, I can see that the community of Django is very helpful now > :). So if I understood well, I

Re: M2M frustration

2014-05-18 Thread Mark Phillips
Jorris, Have you tried changing the order of imports in your model? From a quick read of the references, that helped some folks. Mark On May 17, 2014 9:24 AM, "Joris" wrote: > Dear all, please help me with this unsolved mystery. > > Error: "Cannot resolve keyword u

Re: M2M frustration

2014-05-18 Thread Mark Phillips
of now....good luck! Mark On May 18, 2014 5:57 PM, "Joris" wrote: > > Dear Mark, > > Thanks for your suggestion. > > Yes, more or less, I've been playing with the order but the models are so > complex with lots of overrides and many fields that it's h

Re: M2M frustration

2014-05-18 Thread Mark Phillips
What a coincidence...Russ gave you the link I was looking for! Mark On May 18, 2014 9:10 PM, "Mark Phillips" wrote: > Joris, > > I had some problems moving a django from my dev server to production > (apache2 and wsgi). I found a discussion about the differences between ho

Re: Anyone interested in reviewing the code of a small project - BookMarker

2014-05-25 Thread Mark Phillips
I took a quick look at your code and my first comment is to add comments to your code. I would like to read in your comments what you are trying to accomplish, and then I can look at the code with a more informed eye. Mark On May 25, 2014 5:59 AM, "Avraham Serour" wrote: > any ex

Re: trying to configure MSSQL 2012 as backend with Django.

2014-06-15 Thread Mark Phillips
Did you look here?? http://django-mssql.readthedocs.org/en/latest/ Mark On Sun, Jun 15, 2014 at 11:35 AM, sarfaraz ahmed wrote: > Hello Friends, > > I am trying to moving away from sqlite. Trying to use MS SQl 2012 as > backend. So far I installed django-mssql on my machine.

Re: Generating a unique 10 digit ID for each model instance

2017-10-22 Thread Mark Phillips
I thought python's uuid.uuid4 guaranteed a unique value. Am I missing something? Mark On Sun, Oct 22, 2017 at 3:58 PM, James Schneider wrote: > > > On Oct 22, 2017 12:29 PM, "Andréas Kühne" > wrote: > > Hi, > > I think you are correct with your pseudocod

Anyone Having Success with Wand to Create Thumbnails from PDF files?

2017-11-13 Thread Mark Phillips
] output_thumbnail.jpg But when I try to use wand on the same image I get this error: Traceback (most recent call last): File "/home/mark/python-projects/memorabilia-project/memorabilia/models.py", line 24, in make_thumb pages = Image(blob = b) File "/home/mark/.virtualenvs/memorabili

Need Help with Field Validation

2017-12-03 Thread Mark Phillips
nt_document_id should exist and be equal to the d.document_id (the id of the document found in the search). I can't figure out why the current_document_id is always None. What am I missing here? How else can I block the ValidationError when I am merely updating another Document field, beca

Re: Need Help with Field Validation

2017-12-04 Thread Mark Phillips
to access the other fields in the returned data. No idea why, but it works now! Can someone explain the difference between self.cleaned_data and self.instance in a ModelForm? Thanks! Mark On Sun, Dec 3, 2017 at 7:43 PM, Mark Phillips wrote: > I have a model called Document that has a

Need Help with Many to Many Fields

2017-12-08 Thread Mark Phillips
the documents in the collection correctly? Is there some way to get a queryset to look up the Document fields directly, or do I have to make two queries as I am doing? Thanks! Mark -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: Need Help with Many to Many Fields

2017-12-09 Thread Mark Phillips
> Hi Mark, > > You should not create 2 methods. > Just change that first to be like: > > return obj.document.all().values_list('field_1', 'field_2') > > With this you will get QuerySet of tuples, like > > > I believe it should solve your pro

Re: Need Help with Many to Many Fields

2017-12-09 Thread Mark Phillips
documents: tempstr = tempstr + d.field_2 return tempstr Mark On Sat, Dec 9, 2017 at 9:14 AM, Mark Phillips wrote: > Constantine, > > Thanks for the link and update! However, I am not sure how to make two > columns in the CollectionsAdmin table without two functions.

Re: Need Help with Many to Many Fields

2017-12-09 Thread Mark Phillips
should have been class CollectionAdmin(admin.ModelAdmin) in the above post. Mark On Sat, Dec 9, 2017 at 9:16 AM, Mark Phillips wrote: > Hit send by accident... > > Constantine, > > Thanks for the link and update! However, I am not sure how to make two > columns in the Coll

Model Design Questions

2017-12-16 Thread Mark Phillips
u 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-users+unsubscr...@googlegroups.com. To post to this group, send email

Many to Many fields and through table

2017-12-19 Thread Mark Phillips
urdles, so I am considering creating the through table now in case "the powers that be" (ie end users!) decide we need some extra data for the relationship in the future. Thanks! Mark -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Model Design Questions

2017-12-22 Thread Mark Phillips
ith django and mysql and bite the bullet if I need to do some fancy db manipulations down the road. Thanks again! Mark On Sun, Dec 17, 2017 at 5:04 AM, James Schneider wrote: > > > On Dec 16, 2017 4:46 PM, "Mark Phillips" > wrote: > > I am building an electronic docum

MongoDB and Django

2018-01-06 Thread Mark Phillips
, the group is using. 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...@googlegroups.com. To post to this group,

Can I test for count of a many to many field, in a Q query, along with other filters?

2018-01-16 Thread Mark London
ithin a Q query? If not, can I make 2 separate queries, and combine them, and eliminate duplicates? 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

How to formulate a query over two models?

2018-04-11 Thread Mark Phillips
on't see how to relate the two models and get something close to what I want. 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

Re: How to formulate a query over two models?

2018-04-11 Thread Mark Phillips
Thanks for the link - I have read it before. I need to stay with these models, so is there a simple query to get my result, or do I have to make multiple queries and combine the data in python? Thanks, Mark On Wed, Apr 11, 2018 at 4:14 PM, Christophe Pettus wrote: > > > On Apr 11, 20

How to Make a Custom Inline Form for Admin

2018-04-17 Thread Mark Phillips
900, 1910, etc} A user would click a check box for Person and then select an option from the associated select box to add that metadata information to the DocumentMetaDataValue table. I have been playing around with using forms. ModelForms and forms.Forms, and can't seem to get anything to

Weirdness with Chained Selects in the Admin

2018-04-22 Thread Mark Phillips
"#id_documentmetadatavalue_set-0-metadataValue").val($("#id_documentmetadatavalue_set-0-metadataValue option:first").val()); $("#id_documentmetadatavalue_set-0-metadataValue").selectmenu('refresh'); } }); } }); }); Thanks for any insights yo

Re: Add extra fields to a ModelAdmin form

2018-05-02 Thread Mark Phillips
. Would you be willing to share your code with me? In particular, I am not sure where and how you are using self.form.declared_fields. I am running django 1.11. Thanks! Mark On Mon, Apr 30, 2018 at 1:41 AM, 'James Foley' via Django users < django-users@googlegroups.com> wrote:

Re: Add extra fields to a ModelAdmin form

2018-05-05 Thread Mark Phillips
help! Mark On Wed, May 2, 2018 at 9:12 AM, 'James Foley' via Django users < django-users@googlegroups.com> wrote: > Hey Mark, > > I've not actually found a solution yet, I've just sort of put it at the > bottom of my pile of problems... > > Here is

How to make queries using Mysql JSON field and django 2

2018-05-11 Thread Mark Phillips
Jacobs" in the "Person" field, the query would return both that record and the record with the "Sam Smith" in the Person field. Either some sort of "or" condition within the query that would allow me to search for "Sam Smith" or "Sammy Jacobs

Re: Django Queries

2018-05-11 Thread Mark Phillips
document_state 1 >>> d[0].storage_file_name >>> title, document_id, description, and storage_file_name are all fields defined in the model for Document (along with others). Read the django documentation about models and queries for more information. Mark On Fri, May 11, 2018 at 9

Unit testing models.py

2018-05-13 Thread Mark Phillips
ecessary, as I would again assume django covers this in their unit tests? Anything else that I am missing? 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,

How to update Django 2 JSON FIeld?

2018-05-27 Thread Mark Phillips
ype': 'Individual', 'Person': ['Tina Phillips Roderique'], 'URL': 'http://sam.com', 'Decade': '1990', 'a boolean': False} >>> fred[0].metadata = sam >>> fred[0].metadata {'Date': '05/

How to get the primary key of the underlying model in a ModelForm?

2018-05-29 Thread Mark Phillips
primary key, because one of the fields on the form belongs to another model (it is a JSON field), and I need to save that field in the other model when the DocumentForm is saved. How do I access the primary key of the underlying Model in a ModelForm? Thanks! Mark -- You received this message

Re: How to get the primary key of the underlying model in a ModelForm?

2018-05-30 Thread Mark Phillips
Mathew, Thanks! Mark On Tue, May 29, 2018 at 2:18 PM, Matthew Pava wrote: > You can access self.instance, which should have all the fields populated > for that model instance. So you can access it via self.instance.pk. > > > > Keep in mind, though, that if you are creating

Re: Implementing a 'please wait' page

2018-05-31 Thread Mark Phillips
Have you looked at celery (http://www.celeryproject.org/) to handle the long running process? Perhaps in conjunction with redis (https://redis.io/)? If you passed the long running process to celery, then you could change the page to "say please wait....". Mark On Thu, May 31, 2018

Best way to add an image from a filefield to django 2.0 admin?

2018-06-04 Thread Mark Phillips
admin. How do I do it? Do I have to override the admin/change_form.html for the DocumentMetaData model? 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

Django built-in: cycle

2016-06-05 Thread Mark Cuevas
I'm using the following, which works, but doesn't break properly. I'd like three across for each row. How can I accomplish that? {% for director in directors %} {{ director.full_name }} {% endfor %} -- You received this message because you are subscribed to the G

Re: Looking for a Django Co-Founder.

2019-02-02 Thread Mark Phillips
This thread appears to be a scam. It seems the OP is not contacting any of the folks who say they are interested. Perhaps this thread should be removed? Mark On Sat, Feb 2, 2019 at 6:15 AM Anh Nguyen wrote: > Hi, it there are still able to join ? > > Sent from my iPhone > > On J

Re: Convert JSON data into structured data in an SQL database using Django ORM

2019-02-02 Thread Mark Phillips
/docs/9.3/functions-json.html JSON, Django, and MySQL docs https://django-mysql.readthedocs.io/en/latest/installation.html Mark Mark On Sat, Feb 2, 2019 at 2:04 PM Parth Sharma wrote: > I am building a chatbot using Django with a MySQL backend. > I have a `ChatSession` model which represe

Django tests appear to be getting substantially slower

2019-06-15 Thread Mark Jones
I was fixing up a Django app https://github.com/mark0978/django-softdelete and setting up tox to make sure it worked with all the listed versions because of issues opened on the original repo. While I was running tox locally I noticed that with every version of Django, the tests ran slower, and

Re: Django tests appear to be getting substantially slower

2019-06-15 Thread Mark Jones
v2.2? Django isn't getting slower as the version of python increases, it's getting slower as the version of Django increases. On Sat, Jun 15, 2019 at 7:20 AM Simon Charette wrote: > Hi Mark, > > It's hard to tell exactly what's going on without more details but

Re: Django tests appear to be getting substantially slower

2019-06-15 Thread Mark Jones
sqlite3.dylib On Sat, Jun 15, 2019 at 8:16 AM Simon Charette wrote: > I meant Django 2.0 -> 2.1. As long as you are using Django 2.2 with SQLite > 3.20+ > the slowdown I mentioned should be effective. > > Simon > > Le samedi 15 juin 2019 08:32:56 UTC-4, Mark Jones a écrit :

Django module for a tag input field on a user form, with autocomplete & automatic adding new tags?

2017-02-25 Thread Mark London
browser to hang. I have looked at the alternatives, but either they are mainly designed to be used by the admin module, or the documentation for implementation is very sparse, without a real hardcoded demo, which is included with the tagulous package. Can anyone help me out? Thanks very much! Mark

Re: Request for advice on refactoring a big Django project

2017-03-06 Thread Mark Phillips
ling to help as long as you make it super easy for them to help you figure out the answer to a specific question. God luck! Mark. On Mon, Mar 6, 2017 at 5:13 AM, Vijay Khemlani wrote: > Also, this type mailing lists are usually for specific questions about > the framework > > &quo

Re: Python / Django newbie looking for mentorship

2017-03-19 Thread Mark Phillips
Feria, Start here if you are comfortable with Python https://docs.djangoproject.com/en/1.10/intro/tutorial01/ Start here if you are new to Python... https://www.codecademy.com/learn/python Both are hands on. Good luck! Mark On Sun, Mar 19, 2017 at 6:52 PM, Feria Científica

No module named utils

2017-03-20 Thread Mark Knochen
/lib/envs/bin/python I dont know, what can i do? Thank you for help 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-user

Re: django sample projects

2017-03-27 Thread Mark Phillips
Try "2 Scoops of Django" book. Shows uou how to set up a project. Mark On Mar 27, 2017 6:28 AM, "Shahab Emami" wrote: > hello > > i have question: > where can i find a few django sample projects? > i have seen a few tutorials and courses b

Re: How to get a mentor

2017-04-04 Thread Mark Phillips
eed to spend 99% of your time to refine your business idea before you invest in other areas. Spend 1% learning how to create a django site with the help of this list until you and your business mentors are convinced you have a rock solid and defensible idea. Just my 2 cents and some free mentoring! ;

Re: Django feedback

2017-05-01 Thread Mark Phillips
Can you successfully send an email from the command line on your server? You need to be able to do that in order to send email from django. Mark On Mon, May 1, 2017 at 1:52 PM, Melvyn Sopacua wrote: > On Monday 01 May 2017 13:47:10 goskoomer tarasenko wrote: > > > The third day I

<    1   2   3   4   5   6   >