Re: Added new column to model and run migrations but not applied to database table

2022-07-03 Thread Malik Rumi
Hi Salima. I am having a similar issue. I see it has been two weeks without a response. Have you found a similar bur report on the Django bug tracker? Have you filed a bug report yourself? Have you found a sustainable solution? Thanks. On Wednesday, June 15, 2022 at 8:46:59 AM UTC-5 sali...@roh

ForeignKey Reverse Relation Fail

2022-07-27 Thread Malik Rumi
I have a model with a recursive foreign key to 'self'. This is intended to model a parent child relation among instances. The forward relation, on a field called 'childof', works as expected. The reverse relation, using the related_name 'parent', comes up as a RelatedManager, again as expected.

Re: ForeignKey Reverse Relation Fail

2022-07-27 Thread Malik Rumi
e you tried using OneToMany relationship ? > On 27 Jul 2022 12:18, "Malik Rumi" wrote: > >> I have a model with a recursive foreign key to 'self'. This is intended >> to model a parent child >> relation among instances. The forward relation, on a field

Re: Not getting static files with django & heroku deployment

2015-07-04 Thread Malik Rumi
Hi Martin, First let me say unapologetically that I love PyDanny and his work and contributions to the Django community, especially Two Scoops. However, you should know that the philosophy he espouses there is very different from the one Heroku espouses. I've been told he talks about that somew

Fighting with sqlcustom

2014-07-09 Thread Malik Rumi
Background: I am new to Django and Python, having started on Windows this past December. Currently I am working in a Vagrant precise64 box, and wanted to import one of my old Windows apps which was done on sqlite3 to my current postgres. Once I got that done, Django told me I would need to run

Errors Using Pip In Powershell to Download Django

2014-07-16 Thread Malik Rumi
Yesterday I tried to get the 1.7rc1 and got the error 'file contains no section headers'. I assumed this was because it was a tarball, and after looking around gave up for the night. Tonight I decided to just get 1.6.5. But to my surprise, I got the same error. I have no control over putting sec

Re: Errors Using Pip In Powershell to Download Django

2014-07-17 Thread Malik Rumi
Thanks to both of you. I had a corrupt pip cache. Solution here: http://stackoverflow.com/questions/9510474/removing-pips-cache On Thursday, July 17, 2014 10:20:51 AM UTC-5, cmawe...@gmail.com wrote: > > Yesterday I tried to get the 1.7rc1 and got the error 'file contains no >> section headers'.

What is the difference between running manage.py and ./manage.py?

2014-08-03 Thread Malik Rumi
Is this a Linux thing? -- 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-use

How to Construct a View with multiple and singular objects?

2014-08-04 Thread Malik Rumi
I have a model with numerous objects. However, some of these objects have sub-objects and some do not. When calling up an object with sub-objects, (linked by a foreign key) I’d like to display Object 1.Sub object 2.Sub object And when the user requests an object with no subs, they

Re: What is the difference between running manage.py and ./manage.py?

2014-08-04 Thread Malik Rumi
oth give > the same result, since it's two ways of doing the same thing. > > cheers > L. > > On 4 August 2014 12:03, Malik Rumi > > wrote: > > Is this a Linux thing? > > > > -- > > You received this message because you are subscribed to t

1.7: module has no attribute

2014-08-10 Thread Malik Rumi
I am trying to make my first django project using 1.7. When I try to run python manage.py * (runserver, makemigrations, shell, validate - it doesn't matter) I get the same error: slug = models.Slugfield(max_length=50, unique=True) AttributeError: 'module' object has no attribute 'Slugfield' He

Re: 1.7: module has no attribute

2014-08-11 Thread Malik Rumi
t; Refer: > https://docs.djangoproject.com/en/dev/ref/models/fields/#slugfield > > > > On Monday, 11 August 2014 10:06:20 UTC+5:30, Malik Rumi wrote: >> >> I am trying to make my first django project using 1.7. When I try to run >> python manage.py * (runserver, makemigratio

Re: How to Construct a View with multiple and singular objects?

2014-08-11 Thread Malik Rumi
This is on hold while I wrestle with other problems. On Monday, August 4, 2014 11:43:52 AM UTC-5, Collin Anderson wrote: > > Do you get an error if you wrap it in an if statement? > > {% if object.sub_object %}{{ object.sub_object }}{% endif %} > > -- You received this message because you are s

Django 1.7: ImportError: No module named .models

2014-08-11 Thread Malik Rumi
#admin.py: from apps..models import Articles, Sections ImportError: No module named .models I have seen this error before, and it went away when I changed INSTALLED APPS from to apps. because I have all my apps in a folder called apps. Now I have changed even that to Config because

Re: Django 1.7: ImportError: No module named .models

2014-08-11 Thread Malik Rumi
reference to a decorator of any kind. Is this the source of my problems? Where is the documentation on “.models”? Yes, I have looked and found zip. Thanks. On Monday, August 11, 2014 8:43:29 AM UTC-5, Malik Rumi wrote: > > #admin.py: > > from apps..models import Articl

Re: Django 1.7: ImportError: No module named .models

2014-08-11 Thread Malik Rumi
's knowns as a > "relative import" > > > On Monday, August 11, 2014 1:35:50 PM UTC-4, Malik Rumi wrote: >> >> UPDATE >> >> What is “.models”, why and when do we import from it, and how is it >> different from importing from “models”? >>

Sequence of code validation

2014-08-17 Thread Malik Rumi
When you run python mange.py *, Django runs through your code and stops to point out errors instead of giving you runserver or shell or whatever you were trying to do. What is that sequence? Is it the same every time? Where can I find out more about it? I looked in the docs, but I couldn't find

Re: Sequence of code validation

2014-08-17 Thread Malik Rumi
mework by calling `python manage.py check` > (calls to validate will redirect to check). > > I hope that helps. > > Yours, > Russ Magee %-) > > > On Sun, Aug 17, 2014 at 8:08 PM, Malik Rumi > wrote: > >> When you run python mange.py *, Django runs through your

Re: Sequence of code validation

2014-08-17 Thread Malik Rumi
find the one that fails to import. > > Yours, > Russ Magee %-) > > On Sun, Aug 17, 2014 at 9:28 PM, Malik Rumi > wrote: > >> Thanks for both the reply and it's speed. Yes, this looks to be part of >> what I am looking for. I say part because the link you

Re: Does Django detect changes in models Meta ?

2014-09-07 Thread Malik Rumi
Django 1.7rc2 here. Same question, same hope for an answer. It may be that not all possible changes to a model are intended to be picked up. For example, I created all my models directly in 1.7rc2, and I have not changed any fields. What I have done is changed / added some meta and methods. May

Re: Does Django detect changes in models Meta ?

2014-09-08 Thread Malik Rumi
lue and then did makemigrations > then migrate. It doesn't work. I get a very long error. > > On Sep 7, 2014, at 8:54 AM, Malik Rumi wrote: > > Django 1.7rc2 here. Same question, same hope for an answer. It may be that > not all possible changes to a model are intended to be

1 named url per page/screen?

2014-09-25 Thread Malik Rumi
1. I am trying to understand the documentation here: https://docs.djangoproject.com/en/1.7/topics/http/urls/#naming-url-patterns Let us suppose I have a model and folder on mysite called Colors. Within Colors there are several individual documents: blue, green, yellow. If blue, green, and yell

Failure to get data from database and onto template.

2014-10-01 Thread Malik Rumi
Executive Summary: I need to know how to consistently write fbv’s that get the content I want out of my database and into my templates for display on my site in the way I want it displayed. I confess, I don’t get it. Mark me down in points for asking a dumb question. I don’t care. I need hel

Re: 1 named url per page/screen?

2014-10-01 Thread Malik Rumi
ut of the woods yet. I posted a new request for help here: https://groups.google.com/forum/#!topic/django-users/fbiVWytyz5w . I invite you to share your wisdom. On Thursday, September 25, 2014 4:43:43 PM UTC-5, Malik Rumi wrote: > > 1. I am trying to understand the documentation here: > h

Re: 1 named url per page/screen?

2014-10-02 Thread Malik Rumi
rewrite. What would that be? On Thursday, October 2, 2014 8:27:52 AM UTC-5, Daniel Roseman wrote: > > On Wednesday, 1 October 2014 21:35:30 UTC+1, Malik Rumi wrote: >> >> Ok, thank you Daniel. Your response is reasonable and makes sense, but >> that clarity is not on

Re: Failure to get data from database and onto template.

2014-10-02 Thread Malik Rumi
27;ve done plenty already. Thx. On Thursday, October 2, 2014 8:36:59 AM UTC-5, Daniel Roseman wrote: > > On Wednesday, 1 October 2014 21:32:14 UTC+1, Malik Rumi wrote: >> >> Executive Summary: >> >> I need to know how to consistently write fbv’s that get the content

Re: Failure to get data from database and onto template.

2014-10-02 Thread Malik Rumi
Collin, Thank you for the suggestion. I will try it tonight after I get off work and can finish cleaning up the code following Daniel's answer. sectionView is supposed to be id/slug, but I included the Article name in the Section names, because I can't put a fk in the slug. So maybe that was al

Re: Failure to get data from database and onto template.

2014-10-03 Thread Malik Rumi
me so I can get this done better next time, I am all ears. Thanks again for all the help. On Thursday, October 2, 2014 4:08:24 PM UTC-5, Malik Rumi wrote: > > Collin, > Thank you for the suggestion. I will try it tonight after I get off work > and can finish cleaning up th

moving existing django projects

2014-11-12 Thread Malik Rumi
Q: This is a ‘help me understand how this works / what it does’ question rather than a ‘help me I’m stuck’ question. I have an existing Django project I wanted to get on Heroku. I created a new site on Heroku, uploaded my project, and ran migrations. But all I have is a generic new, empty Dja

Re: moving existing django projects

2014-11-15 Thread Malik Rumi
;t get that at all. Your wisdom and insights will be greatly appreciated. On Wed, Nov 12, 2014 at 5:05 PM, Carl Meyer wrote: > Hi Malik, > > On 11/12/2014 08:27 PM, Malik Rumi wrote: > > Q: This is a ‘help me understand how this works / what it does’ question > > rather

Re: moving existing django projects

2014-11-18 Thread Malik Rumi
and how all these things work better than I do now. On Mon, Nov 17, 2014 at 12:47 PM, Carl Meyer wrote: > Hi Malik, > > On 11/15/2014 08:52 PM, Malik Rumi wrote: > > << What WSGI server are you using in the > > Heroku deployment? Can you point to the instructions you

wsgi errors lead to 500 launching django on heroku

2015-01-01 Thread Malik Rumi
I have a wsgi problem I am hoping you can help me with. I am running Django1.7 with gunicorn 19.1.1 and wsgiref 0.1.2. I am trying to get this to run on Heroku. The last error was that it could not find the template home.html and that there was a wsgi error. I added TEMPLATE_DIR to my setting

Re: wsgi errors lead to 500 launching django on heroku

2015-01-03 Thread Malik Rumi
SOLVED. On Thursday, January 1, 2015 9:17:57 PM UTC-6, Malik Rumi wrote: > > I have a wsgi problem I am hoping you can help me with. I am running > Django1.7 with gunicorn 19.1.1 and wsgiref 0.1.2. I am trying to get this > to run on Heroku. The last error was that it could

Re: Can't Install on Windows 8.1

2013-12-24 Thread Malik Rumi
ther requirements inside your virtualenv. > > > > HTH, > Tim > > > > > On Tue, Dec 24, 2013 at 11:35 AM, Malik Rumi > > wrote: > >> Hello. This is my first post. The attached Word document tracks >> everything I have done this morning

Re: Can't Install on Windows 8.1

2013-12-25 Thread Malik Rumi
re / how would I do that? Everything I have done so far has been thru the windows command line. Thanx. - - On Tuesday, December 24, 2013 11:48:22 AM UTC-6, Malik Rumi wrote: > > Boy, the speedy responses on this thread are great! I can't wait to get > home from work so I can put this

Re: Can't Install on Windows 8.1

2014-01-05 Thread Malik Rumi
got a patch (not from Google) and my GAE is fine again. Nevertheless, all this has eaten up a lot of time. When and if I ever get Django running I'll be back, but I don't expect to have any Windows problems anymore. Thanks. On Wednesday, December 25, 2013 4:02:52 PM UTC-6, Felipe

Re: Can't Install on Windows 8.1

2014-01-15 Thread Malik Rumi
gt; PIL is no longer being supported and Pillow has taken over. > > Mike > > > On 5/01/2014 11:57pm, Malik Rumi wrote: > >> This is just an update to all of you, and to anyone coming after me with >> similar problems. No, I did not get what I wanted for Christmas. It &

I have a gap in the reported error location of template does not exist

2014-01-25 Thread Malik Rumi
I'm wondering why this is and if it is why I am getting this eror? The template is in the default template dir. 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 em

failure of auto increment in inndb (mysql)

2014-01-27 Thread Malik Rumi
I read this on the django project site: > > Since MySQL 5.5.5, the default storage engine is > InnoDB. > This engine is fully transactional and supports foreign key references. > It’s probably the best choice at this point. Howe

moving from sqlite3 to mysql

2014-01-28 Thread Malik Rumi
This is somewhat like the question in "need help moving to production server" but I think the right procedure is to start a new thread. So I think I have done well for just starting out. With your help I've gotten Django running on Windows, and I completed a tutorial and got my site working loc

Re: Implementing detailed access rights for users of different elements.

2014-01-28 Thread Malik Rumi
I don't have any solutions for you, but I am VERY interested in the responses, since you describe some of the same issues I will have soon but have not gotten to yet - especially the last one, which I don't think is 'minor' at all. So, how about it, all you experienced users out there? Answer t

Re: moving from sqlite3 to mysql

2014-02-05 Thread Malik Rumi
be created for you. > While with MySQL, you should create the database directly in the shell, > and this should give you an empty database. The Django tables will be > created after configuring your settings, and running syncdb. > > > > > On Wed, Jan 29, 2014 at 1:17 AM,

Re: moving from sqlite3 to mysql

2014-02-06 Thread Malik Rumi
'ENGINE': 'django.db.backends.mysql', >> 'NAME': 'django_1', # Or path to database file if using sqlite3. >> # 'USER': '', >> # 'PASSWORD': '', >> # 'HOST':

Django default settings module errors

2014-02-11 Thread Malik Rumi
My immediate goal is to port my (first) Django project to Google App Engine. It is running fine in Django’s runserver. However, in the GAE SDK I get nothing but blank white pages. I have looked at the Djangosettings documentation , the d

heroku better for django?

2014-02-11 Thread Malik Rumi
I have been trying to get my django project on Google App Engine without success, including posting my most recent problem on Stack Overflow and getting zero responses (I just reposted that question herein Django Google Groups)

Re: heroku better for django?

2014-02-12 Thread Malik Rumi
Thanks to both of you. Clearly both Heroku and AWS are more welcoming to Django than GAE. I wasn't looking forward to running the server myself, but the documentation on AWS as well as Glyn's post make it seem a little less intimidating, so I am going to take a test flight on AWS and see what h

Re: heroku better for django?

2014-02-13 Thread Malik Rumi
when trying to load this module even if I precede the load command with sudo. Can you help, please? Thanks. On Wednesday, February 12, 2014 12:02:37 PM UTC-6, Malik Rumi wrote: > > Thanks to both of you. Clearly both Heroku and AWS are more welcoming to > Django than GAE. I wasn

Re: heroku better for django?

2014-02-13 Thread Malik Rumi
Are you the same Daniel Roseman that replied to a search question of mine on Stack Overflow? On Thursday, February 13, 2014 2:59:15 PM UTC-6, Daniel Roseman wrote: > > On Thursday, 13 February 2014 20:47:58 UTC, Malik Rumi wrote: >> >> Glyn, I am following your guide but when I

installing django trunk

2014-03-08 Thread Malik Rumi
I am going from 1.6.1 to 1.7a2, mostly to take advantage of the new migrations feature. I followed the directions here http://django.readthedocs.org/en/latest/topics/install.html#removing-old-versions-of-django Since I originally installed with pip, supposedly that would take care of removing

Re: installing django trunk

2014-03-15 Thread Malik Rumi
it was running 1.6.1. So, I guess I'll have to muddle along without migrations, which was the whole point of this exercise in futility. But I sure would like to understand what is happening here, if any of you wiser and more experienced heads can enlighten me. \ On Saturday, March 8,

Re: installing django trunk

2014-03-19 Thread Malik Rumi
Anybody? A little help here? Just to update, I ran a search for 'migrations' in my django folder, and got a lot of hits, but when I tried to actually run 'makemigrations" I got 'unknown command' On Sat, Mar 15, 2014 at 6:37 PM, Malik Rumi wrote: > First,

3 table many to many relationship

2014-04-23 Thread Malik Rumi
I was designing the models I will need for this project. I designed an intermediate table for two models, A and B, and then started to sketch out an intermediate table for two other models, A and C, when I realized that these two intermediate tables both use A, and further, the information in

Re: 3 table many to many relationship

2014-04-26 Thread Malik Rumi
g objects to > relationships (A().b_set.create() won't work). > You'll need to explicitly create `R` instances instead: > R.objects.create(a=a, b=b, c=c). > > Simon > > Le mercredi 23 avril 2014 23:24:04 UTC-4, Malik Rumi a écrit : > >> I was designing the m

i've screwed up my virtualenv

2014-05-05 Thread Malik Rumi
I have several problems. They are: My Django project folder is 3 levels below my virtualenv. Pip freeze: a.on my virtualenv, in the parent folder or the Django project, only gives me the Django-trunk I got from github b.but in the Django project folder, and without the virtualenv, i

Re: i've screwed up my virtualenv

2014-05-05 Thread Malik Rumi
THANKS! Yea, it's that 'activate' part that I kept forgetting that got me into this mess. Maybe I should paste it to my forehead? (-: On Mon, May 5, 2014 at 2:46 AM, Mike Dewhirst wrote: > On 5/05/2014 5:32 PM, Malik Rumi wrote: > >> >> I have sever

What does "+=" mean, or do?

2014-05-12 Thread Malik Rumi
I saw it here http://www.slideshare.net/jacobian/the-best-and-worst-of-django on slide 41. That's a lot to go through, I know, sorry about that. But I googled it and of course got nothing because Google ignores things like + and = now. And I know in this particular example he says 'don't do thi

Re: What does "+=" mean, or do?

2014-05-12 Thread Malik Rumi
Wow, really quick replies! thanks to both of you! On Monday, May 12, 2014 8:26:57 AM UTC-5, Tom Evans wrote: > > On Mon, May 12, 2014 at 2:22 PM, Malik Rumi > > > wrote: > > I saw it here > > http://www.slideshare.net/jacobian/the-best-and-worst-of-django on >

Remote development on Heroku

2014-07-02 Thread Malik Rumi
Because I have not been able to get a response to this issue I am going to use for remote development. Since I will not be giving out the url,will it be okay to set debug to true a

Search results in template

2017-12-19 Thread Malik Rumi
I am implementing search on a local Django project: Django 1.11.5, Python 3.6.3, Ubuntu 16.04. My issue is getting the search results onto the template. I am using standard CBV for everything else in the site, but for this one I wrote my own. It uses the same template as my ListView, which s

Re: Search results in template

2017-12-22 Thread Malik Rumi
Thanks to both of you. The template context is what it should be, and putting all the view in the same block made no difference. :-( On Wednesday, December 20, 2017 at 6:24:57 AM UTC-8, James Schneider wrote: > > > > On Dec 19, 2017 5:12 PM, "Malik Rumi" > > wrote:

Re: Search results in template

2017-12-23 Thread Malik Rumi
FIRST, James, let me say how much I *greatly* appreciate you hanging in there and trying to help me. 2nd, as to your two points about the html: a. This template, serp_list.html, is identical to ktab_list.html, except that serp_list has the title 'SEARCH' at the top and some bolierplate text abou

Re: Search results in template

2017-12-26 Thread Malik Rumi
nd to the query 'eaa'. They just aren't there. 😪 *“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”* On Sun, Dec 24, 2017 at 2:44 AM, James Schneider wrote: > > > On Dec 23, 2017 5:36 PM, "Malik Rumi" wro

Re: Search results in template

2017-12-26 Thread Malik Rumi
Here is the Entry model: class Entry(models.Model): title = models.CharField(max_length=100, blank=False, null=False) slug = models.SlugField(max_length=100) content = models.TextField() posted_date = models.DateTimeField(auto_now=True) chron_date = models.DateField(auto_now=Fa

Re: Search results in template

2017-12-26 Thread Malik Rumi
he loves for his brother or his neighbor what he loves for himself.”* On Tue, Dec 26, 2017 at 8:34 PM, Malik Rumi wrote: > Here is the Entry model: > > class Entry(models.Model): > title = models.CharField(max_length=100, blank=False, null=False) > slug = model

Re: Search results in template

2017-12-26 Thread Malik Rumi
That appears to be it. I got content and all that on the simple template this time. I put values_list in there because that's the way it was done on the postgres full text search tutorial I was using. I assumed it was needed for rank, I never thought about it limiting me otherwise. If I seem a lit

Django: text, font, and style

2018-01-01 Thread Malik Rumi
Apparently I completely misunderstand the built in template tags {% autoescape &} and {% safe %}. Either they don't do what I expect, or I can't get them to do what I expect. But what I am trying to do is not at all unusual, so this post is all about learning from the community what are the

Re: Django: text, font, and style

2018-01-01 Thread Malik Rumi
I'm sorry, James. What the heck is 'steering' in this context? *“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”* On Mon, Jan 1, 2018 at 3:11 PM, James Schneider wrote: > > > > Have you verified that object.content contains un-escaped (raw) HTML?

Re: Django: text, font, and style

2018-01-01 Thread Malik Rumi
cape while waiting for these answers, and I may now have a better grasp on how it works, but still not so much with safe. But this is a good start. thx! *“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”* On Mon, Jan 1, 2018 at 6:00 PM, Malik Rumi wro

Re: Django: text, font, and style

2018-01-01 Thread Malik Rumi
his brother or his neighbor what he loves for himself.”* On Mon, Jan 1, 2018 at 2:47 PM, Malik Rumi wrote: > This also fails, and renders exactly as you now see it on my web page: > > {% autoescape off %} > Yea, that's going to be a monster > {% endautoescape

Re: Django: text, font, and style

2018-01-01 Thread Malik Rumi
28 PM, Malik Rumi wrote: > Well, as I said at the beginning, I don't seem to 'get' autoescape and > safe. For example, I put this in my template: > > {{ object.content|linebreaks|safe }} > > But the result in my web page is: > > Friday, November 17,

Re: Django: text, font, and style

2018-01-01 Thread Malik Rumi
ault all strings processed through Django templating language are > considered as unsafe. IOW all strings gets HTML escaped properly. > > To get around that you can either use safe filter or declare particular > string as a safe in a view. > > 1.1.2018 20.47 "Malik Rumi" k

Re: Django: text, font, and style

2018-01-01 Thread Malik Rumi
Yea, I disconnected that feature on my phone. *“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”* On Mon, Jan 1, 2018 at 7:03 PM, James Schneider wrote: > > > On Jan 1, 2018 6:01 PM, "Malik Rumi" wrote: > > I'm

Using Django create() on a time.field

2018-01-07 Thread Malik Rumi
I am trying to process some text files and feed the result directly into a django model using create(). As so often seems to happen with me, this turns out to not be as simple as I thought it would be. Specifically, I can’t seem to get any data into ‘clock’, the time field in my model. When I

Re: How to get Foreign Key Objects programmatically?

2018-02-27 Thread Malik Rumi
Did you ever find an answer? If so, do you mind sharing it? Thanks. On Sunday, October 29, 2017 at 9:33:10 AM UTC-7, rmschne wrote: > > I'm using Django as front end to a MySQL database. User interface is a > terminal program, not a web site. > > I've written a very simple generic function to edi

Clarification on Foreign Keys requested

2018-03-05 Thread Malik Rumi
Hello all, Up to now, (admittedly not long - I'm not a total newbie but I still have a LOT to learn) when making a foreign key I would just put the pk of that instance in the fk field, as the docs suggest: By default ForeignKey will target the pk of the remote model but this behavior can be ch

Re: Clarification on Foreign Keys requested

2018-03-05 Thread Malik Rumi
standard (defaulted) stuff, it's a mystery. > Either way folks probably need to see some of your code to help out. > > On Mon, Mar 5, 2018 at 5:06 PM, Malik Rumi wrote: > >> Hello all, >> >> Up to now, (admittedly not long - I'm not a total newbie but I still

Re: Multi-table Inheritance: How to add child to parent model?

2016-06-22 Thread Malik Rumi
This thread is obviously very old, but since it helped me find the answer, I thought I would share that for the benefit of others mystified by the lack of information on https://docs.djangoproject.com/en/1.9/topics/db/models/#multi-table-inheritance. It turns out that although Derek's link t

"canonical" views.py in Django Unleashed book, Chapter 22

2016-06-29 Thread Malik Rumi
Although I love the book (so far) for its level of detail and addressing a LOT of issues I am currently dealing with, I have run across a problem. Specifically, the views.py and urls.py in the github repo are NOT the same as the snippets of views.py and urls.py in the book. Now, since I started

Re: "canonical" views.py in Django Unleashed book, Chapter 22

2016-06-30 Thread Malik Rumi
June 29, 2016 at 5:13:42 PM UTC-7, Malik Rumi wrote: > > Although I love the book (so far) for its level of detail and addressing a > LOT of issues I am currently dealing with, I have run across a problem. > Specifically, the views.py and urls.py in the github repo are NOT the sa

Re: "canonical" views.py in Django Unleashed book, Chapter 22

2016-06-30 Thread Malik Rumi
pages would be the exception. Was this just to make the profiles easy to find and/or bookmark for end users? Thanks again. On Wednesday, June 29, 2016 at 5:13:42 PM UTC-7, Malik Rumi wrote: > > Although I love the book (so far) for its level of detail and addressing a > LOT of issue

Django Unleashed, custom user model

2016-07-05 Thread Malik Rumi
Hello, Andrew All of our Tag, Startup, NewsLink, and Post will be right back in the database thanks to our data migrations. Example 22.40 Why? a) you dumped the whole database, and b) you only did makemigrations for the User app. we opt to remove the CreateModel operation for Profile and move

Re: Django Unleashed, custom user model

2016-07-07 Thread Malik Rumi
nnon)malikarumi@Tetuoan2:~/Projects/cannon/jamf$ I thought you should be aware of these differing results. On Tuesday, July 5, 2016 at 6:49:01 PM UTC-7, Malik Rumi wrote: > > Hello, Andrew > > All of our Tag, Startup, NewsLink, and Post will be right back in the > database thank

TemplateSyntaxError at /

2016-07-09 Thread Malik Rumi
Invalid template name in 'extends' tag: ''. Got this from the 'baseX.html' variable. The first line in index.html is: {% extends baseX.html %} I got this error when trying out a new template package I bought. I thought it was telling me something was wrong with the name of the base template

Django Tutor / Teacher

2016-07-09 Thread Malik Rumi
Where can I find a well qualified Django expert to work with me one on one on my site? I'm willing to pay, of course. I looked at Codementor, but once I picked several people, I got this "so and so has not been responding recently,...". I'd rather have someone in my time zone (California) and w

Re: TemplateSyntaxError at /

2016-07-09 Thread Malik Rumi
God damn. That was it - something silly and obvious, but only to a fresh set of eyes. Thank you! On Sat, Jul 9, 2016 at 6:44 PM, James Schneider wrote: > > On Jul 9, 2016 6:38 PM, "Malik Rumi" wrote: > > > > > > Invalid template name in 'extends&#x

static files suspicious operation, os error, and list of paths

2016-07-11 Thread Malik Rumi
Well, I'm stuck again. I am still trying to get my dev site to work with this new bootstrap theme. Debug toolbar is telling me over 1,000 staticfiles have been found, but none were used. So if they are found, why aren't they used? I ran findstatic and got this traceback: (cannon)malikarumi@Tetu

Re: static files suspicious operation, os error, and list of paths

2016-07-11 Thread Malik Rumi
yes. BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) STATIC_URL = '/static/' On Monday, July 11, 2016 at 2:56:06 PM UTC-7, Malik Rumi wrote: > > Well, I'm stuck again. I am still trying to get my dev site to work with > this new bootstrap

Re: static files suspicious operation, os error, and list of paths

2016-07-12 Thread Malik Rumi
UPDATE: I got it back to where runserver comes up and I get no errors, but the staticfiles are still not being served. The paths are in the right *format* to satisfy the STATICFILES_DIR in SETTINGS, and so that they can be *found*, according to debug toolbar, and they *pass* the checks in ru

Re: static files suspicious operation, os error, and list of paths

2016-07-12 Thread Malik Rumi
R, 'static/images/'), os.path.join(BASE_DIR, 'static/js/'), os.path.join(BASE_DIR, 'static/less/'), os.path.join(BASE_DIR, 'static/plugins/'), os.path.join(BASE_DIR, 'static/videos/'), ] # Simplified static file serving. # https://warehouse.python.org/

Django Multi Table Inheritance and Preserving Child and Child History

2016-08-30 Thread Malik Rumi
Note: I originally posted this to http://dba.stackexchange.com/questions/147680/django-multi-table-inheritance-and-preserving-child-and-child-history, but 7 days and ZERO responses is not working for me. Place can have many different one to one fields, that’s why it can have bookstore, rest

Model Inheritance across apps

2016-09-29 Thread Malik Rumi
Assume two models, class Parent(models.Model): and Child(Parent): Assume they are both in the same Project Can Child be in a different app than Parent? In most cases the answer seems to be yes. Each app has many other models to which Parent and Child, respectively, are closely tied - which is

Context * 3

2016-12-16 Thread Malik Rumi
Greetings, sports fans. There is an old saying, three strikes and you're out. They also say the third time is the charm. Let’s see which one this is for me, shall we? This is the 3rd time in the last two years that I have been stuck for more than a few *days* on a problem getting my data on

Re: Context * 3

2016-12-16 Thread Malik Rumi
gt; Dylan > > On Fri, Dec 16, 2016 at 10:02 AM, Malik Rumi > wrote: > >> Greetings, sports fans. >> >> There is an old saying, three strikes and you're out. They also say the >> third time is the charm. Let’s see which one this is for me, shall we? >>

Dynamic querysets?

2016-12-16 Thread Malik Rumi
I already got one fast and helpful answer today, so I’m going to be greedy and press my luck. I have this website. Each state has their own home/landing page off the site’s main page, and from there you will be able to get detail pages about various tidbits about the state of your choice. I

What Did I Do Right? (url and domain name change)

2015-08-06 Thread Malik Rumi
I have 1 model from my django project up and running on django. Before adding more models and content, I wanted to use my actual domain name, instead of whatever.herokuapp.com. So after I got that straight, I realized that while the home page was mysite.com, the links were still mystite.herokua

Re: What Did I Do Right? (url and domain name change)

2015-08-07 Thread Malik Rumi
> A. Your ALLOWED_HOSTS setting should probably have both domains if you > want your transition to be smooth. (i.e. the site works through both > URLs). ALLOWED_HOSTS has no affect on what URLs you application > displays. > > B. Definitely not. Tweak, break, learn. ;) > > Hope th

null datetime field and json fixtures

2016-02-16 Thread Malik Rumi
There are a ton of answers to this question out there - if you can wade through all the ones that refer to forms and not models. The consensus seems to be that datetime has to be set to both blank=true and null=true. And when I put in one test row of data manually through the admin, I could lea

Re: null datetime field and json fixtures

2016-02-17 Thread Malik Rumi
or quotes, followed by a comma, and this time null turned blue in my code editor, which suggests it was working. But then I got the 'badly formed hexadecimal UUID string error again. In sum, there is a special syntax to using null which is not obvious, but thanks for making me take another l

Github v code.djangoproject for bug reports

2016-02-18 Thread Malik Rumi
Does it matter if a bug is reported to one and not the other? Is there any difference between the two? Do the issue tracking numbers between the two line up? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and st

Re: null datetime field and json fixtures

2016-02-18 Thread Malik Rumi
James, I used csvkit csvkit.readthedocs.org/en/latest/index.html to convert the csv to json. On Wednesday, February 17, 2016 at 7:05:59 PM UTC-6, James Schneider wrote: > > >> The uuid.UUID() function is somewhat forgiving when it comes to providing > values. See https://docs.python.org/3.5/lib

  1   2   >