Re: NO IDEA

2022-08-01 Thread Opeyemi Ogunsanya
You said how can you filter by year and I gave you an idea on how to go about it. Next thing I get is if you are a newbie in Django don't show us that you know, what is wrong with Nigerian. On Tue, Aug 2, 2022, 5:15 AM kateregga julius wrote: > Boss if you are a newbie in Django don&#

Re: Idea

2021-11-01 Thread Shaheed Haque
is not of language choices, but that multiple domains have been found to exist, and trying to span them with one syntax is very hard. On Sun, 31 Oct 2021, 23:32 Peter of the Norse, wrote: > Most of the people that think switching to node.js only know PHP. That’s > why it looks like a good ide

Re: Idea

2021-10-31 Thread Peter of the Norse
Most of the people that think switching to node.js only know PHP. That’s why it looks like a good idea. > On Sep 20, 2021, at 2:46 AM, David Nugent wrote: > > This is almost the same case that nodejs users have put forward since it was > invented - why learn 2 languages when 1 wi

Re: Idea

2021-10-31 Thread Peter of the Norse
I’m worried that you are getting on the wrong track here. All web development is necessarily client-server based. One of the signs of a poorly designed VB application is the way that you can put DB code in a button action. That isn't possible in a browser. Instead all it can do is contact th

Re: Idea

2021-09-20 Thread David Nugent
Not at all a "new" topic :-) On Sun, Sep 19, 2021 at 8:11 AM Jet Ezra wrote: > I know this may not be necessary at the moment because we are comfortable > depending on front-end frameworks, but I have my two ideas here: > 1. what if django alone without any framework can be used to design > prog

Re: Idea

2021-09-19 Thread Helin Cao
To answer your 2nd question: there is PyWebIO, an open-source library that allows you to write web UI using only Python and deploy it as a Django app: GitHub: https://github.com/pywebio/PyWebIO Doc: https://pywebio.readthedocs.io/en/latest/ BTW, if you like other Python-based web frameworks, it al

Idea

2021-09-18 Thread Jet Ezra
I know this may not be necessary at the moment because we are comfortable depending on front-end frameworks, but I have my two ideas here: 1. what if django alone without any framework can be used to design progressive web apps, with routers that do not reload the page, we currently have one of

Re: Idea production with Django

2020-06-10 Thread Andréas Kühne
ote: >> >> Please everybody give me some idea. >> > -- > 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+un

Re: Idea production with Django

2020-06-10 Thread Wim Olivier
Build an app where people can post their ideas, and other people vote on their ideas - whether they're good or not good. :-) On Wednesday, 10 June 2020 14:51:33 UTC+2, vchanel Hoang wrote: > > Please everybody give me some idea. > -- You received this message because you are sub

Idea production with Django

2020-06-10 Thread vchanel Hoang
Please everybody give me some idea. -- 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 view this discuss

Re: Got an interview, need some idea for projects.

2020-01-24 Thread Balaji Shetty
Congrats Dear It's not important how many concept you know. It's important regarding your basics for Model, View class and function , Template, Rest API and Admin Basics with User, group Management , with and permission. Most important is Data Base normailZation and Query languages. As you are

Re: Got an interview, need some idea for projects.

2020-01-24 Thread Денис Асташичев
Try writing a python wrapper for Nomics API. Then do something with it. Don't forget the tests. That should cover quite a bit of areas to demonstrate your knowledge On Fri, 24 Jan 2020, 11:29 Jack Lin, wrote: > Hi Motaz, Aditya, and all. > > Won’t that be too easy? Thinking of something more co

Re: Got an interview, need some idea for projects.

2020-01-24 Thread Jack Lin
Hi Motaz, Aditya, and all. Won’t that be too easy? Thinking of something more complex like something need to include a scraper. But I’m not sure if that can be done In a week. I think I will like to find a complex stocks article. No need to base on programming, maybe just a simple theory that I c

Re: Got an interview, need some idea for projects.

2020-01-23 Thread Aditya Khatwa
Create a small website that shows your own portfolio such as your project listing etc can be done in 3-5 days. Add a form as well if you want. Focus on the dynamic aspect rather than its aesthetic for a faster result... On Thu, 23 Jan 2020, 12:41 Jack Lin, wrote: > > > Hi Django users, I'm J

Re: Got an interview, need some idea for projects.

2020-01-23 Thread Motaz Hejaze
Yes .. You can follow projects from books like .. Django 2 by example Building Django 2 web applications On Thu, Jan 23, 2020 at 9:10 AM Jack Lin wrote: > > > Hi Django users, I'm Jack who currently learning Django everyday > > My practice projects

Got an interview, need some idea for projects.

2020-01-22 Thread Jack Lin
Hi Django users, I'm Jack who currently learning Django everyday My practice projects is little tiny function for now. however I got an interview yesterday which is an Django Web Developer in Stock Company.

Django paging single article content page, what is the technical idea to achieve good Do not use front-end JS to page content. If you just use Django technology to page a single article content page.

2019-11-16 Thread zbpython-cn
Django paging single article content page, what is the technical idea to achieve good Do not use front-end JS to page content. If you just use Django technology to page a single article content page. I searched a lot of information. It is found that there are many front-end JS pages. To

How to Use hbase as database in Django ..aby idea ?

2019-06-04 Thread Varun Kumar
How to Use hbase as database in Django ..aby idea ? -- 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 po

Re: Crazy Idea: OOP for "Hyperlink"

2018-05-04 Thread guettli
d. > > -- > -- > Anthony Flury > email : *anthon...@btinternet.com * > Twitter : *@TonyFlury <https://twitter.com/TonyFlury/>* > > On 30/04/18 08:24, guettli wrote: > > > > > > Am Donnerstag, 26. April 2018 15:54:31 UTC+2 schrieb Matthew Pava: > >

Re: Crazy Idea: OOP for "Hyperlink"

2018-04-30 Thread 'Anthony Flury' via Django users
implement and test this custom Field. -- -- Anthony Flury email : *anthony.fl...@btinternet.com* Twitter : *@TonyFlury <https://twitter.com/TonyFlury/>* On 30/04/18 08:24, guettli wrote: Am Donnerstag, 26. April 2018 15:54:31 UTC+2 schrieb Matthew Pava: I’ve been thinking about

RE: Crazy Idea: OOP for "Hyperlink"

2018-04-30 Thread Matthew Pava
Here’s Django’s documentation on widgets: https://docs.djangoproject.com/en/2.0/ref/forms/widgets/ >From the docs: A widget is Django’s representation of an HTML input element. This whole idea would take some time to implement and consider ramifications. After all, a hyperlink isn’t really

Re: Crazy Idea: OOP for "Hyperlink"

2018-04-30 Thread guettli
Am Donnerstag, 26. April 2018 15:54:31 UTC+2 schrieb Matthew Pava: > > I’ve been thinking about your idea, and I wonder if there could instead be > some kind of widget for URL objects (or views). > > > A widget ... Let me think about it. A widget is a libray, is source co

RE: Crazy Idea: OOP for "Hyperlink"

2018-04-26 Thread Matthew Pava
I’ve been thinking about your idea, and I wonder if there could instead be some kind of widget for URL objects (or views). From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of guettli Sent: Thursday, April 26, 2018 8:34 AM To: Django users Subject: Re: Crazy

Re: Crazy Idea: OOP for "Hyperlink"

2018-04-26 Thread guettli
Am Mittwoch, 25. April 2018 17:29:36 UTC+2 schrieb Jani Tiainen: > > Hi. > > Most probably you get there by creating custom template tag and bunch of > other code. > > It would be easier to grasp your idea if you have some kind of an > implementation to reference. &

Re: Crazy Idea: OOP for "Hyperlink"

2018-04-26 Thread guettli
ions view that have an auto generated URL. The > idea (on my concept) is that by getting this unique URL via email, a > user can access the report/action without needing to actually login - > the fact that a user accesses the url is authenticaton - it could > optionally require

Re: Crazy Idea: OOP for "Hyperlink"

2018-04-25 Thread Jani Tiainen
Hi. Most probably you get there by creating custom template tag and bunch of other code. It would be easier to grasp your idea if you have some kind of an implementation to reference. Or is there something that stops you from proceeding? ma 23. huhtikuuta 2018 klo 12.00 guettli kirjoitti

Re: Crazy Idea: OOP for "Hyperlink"

2018-04-25 Thread 'Anthony Flury' via Django users
Interestingly, I am thinking on something similar too - having a report/notifications/actions view that have an auto generated URL. The idea (on my concept) is that by getting this unique URL via email, a user can access the report/action without needing to actually login - the fact that a

Re: Crazy Idea: OOP for "Hyperlink"

2018-04-25 Thread guettli
ays. If someone likes this idea and implements it, please let me know. I am always curious. Regards, Thomas Am Montag, 23. April 2018 12:22:32 UTC+2 schrieb Adrien Cossa: > > Hi, > On 04/23/2018 10:59 AM, guettli wrote: > > I have a vague idea to use OOP for a hyperlink. > >

Re: Crazy Idea: OOP for "Hyperlink"

2018-04-23 Thread Adrien Cossa
Hi, On 04/23/2018 10:59 AM, guettli wrote: I have a vague idea to use OOP for a hyperlink. A hyperlink has these attributes for me: - href - verbose name - Permission: Is the current user allowed to follow the link? - Preview (on-mouse-over tooltip) We have developed something similar in

Crazy Idea: OOP for "Hyperlink"

2018-04-23 Thread guettli
I have a vague idea to use OOP for a hyperlink. A hyperlink has these attributes for me: - href - verbose name - Permission: Is the current user allowed to follow the link? - Preview (on-mouse-over tooltip) I like Django because it handles the "href" part very smart (via reverse()).

Django new project idea

2017-10-04 Thread sakkhar saha
Hello everybody, I am new developer in python/django developer. Now i am start a new project in Django. So Please i have a new idea in my new project. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: Would it be a good idea to build a IM app using django channels?

2017-04-01 Thread Vic Wei
Thank you very much, Andrew, it helps! Really apprieciated. I am trying to build the app myself now. -- 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: Would it be a good idea to build a IM app using django channels?

2017-03-31 Thread Andrew Godwin
Hi Vic, Channels would be a suitable building block for such an app, certainly, but you'd need to do a lot more work on top of it. Online presence management, chat history, login, authentication, and the protocol would all be the things you need to solve - Channels just gives you a basic eventing

Re: Adding fields in model, migrating a sqlite.db in production...good idea?

2017-03-31 Thread kalinski
super thanks! i hoped for that answer! -- 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 ema

Re: Adding fields in model, migrating a sqlite.db in production...good idea?

2017-03-31 Thread ludovic coues
Make a copy of your sqlite file and try makemigration on your copy. Everything should go smoothly. If that's the case, you can now use your copy as your new production database. As a side note, I don't think using an sqlite database is bad practice. It make it super easy to backup your data. 2017

Adding fields in model, migrating a sqlite.db in production...good idea?

2017-03-31 Thread kalinski
Hello, I have a sqlite db that already holds important production data. Well same time I am developing that application adding functions while I need them. Well I know not exactly best practice. Now I need to add two fields to a model (boolean and char), I want to makemigrations, git add, git comm

Would it be a good idea to build a IM app using django channels?

2017-03-31 Thread Vic Wei
I'm trying to build a django Instant Massage app, but I have some confusions, My app should the following needs: 1.be able to communicate in real time with browser, iOS, and Android native apps. 2.one user can send messages to another user in private 3.users can chat in serval chat room at a time

Re: any idea for get_absolute_url in m2m categories

2017-02-20 Thread carlos
thank Melvyn :) i understands right now! On Mon, Feb 20, 2017 at 9:24 AM, Melvyn Sopacua wrote: > On Monday 20 February 2017 08:39:07 carlos wrote: > > > Hi, Melvyn yes i use similar but for the question is > > > the best way? > > > > > > def get_absolute_url(self): > > > > > > return '/%s/%s-%s

Re: any idea for get_absolute_url in m2m categories

2017-02-20 Thread Melvyn Sopacua
On Monday 20 February 2017 08:39:07 carlos wrote: > Hi, Melvyn yes i use similar but for the question is > the best way? > > def get_absolute_url(self): > > return '/%s/%s-%s/' % (self.categories.all()[0].slug, self.id, > self.slug) #this way a take first category, but other best way to do > that

Re: any idea for get_absolute_url in m2m categories

2017-02-20 Thread carlos
Hi, Melvyn yes i use similar but for the question is the best way? def get_absolute_url(self): return '/%s/%s-%s/' % (self.categories.all()[0].slug, self.id, self.slug) #this way a take first category, but other best way to do that? thank for helps :) On Mon, Feb 20, 2017 at 5:06 AM, Melvyn S

Re: any idea for get_absolute_url in m2m categories

2017-02-20 Thread Melvyn Sopacua
On Sunday 19 February 2017 23:00:54 carlos wrote: > class Category(...): > name = CharField() > slug = SlugField(.) > > class MyModel(modesl.Model): > post = models.CharField() > slug = models.SlugField(.) > categories = models.ManyToMany(Category) > >def

Re: any idea for get_absolute_url in m2m categories

2017-02-19 Thread Mike Dewhirst
On 20/02/2017 4:00 PM, carlos wrote: Hi, any idea how to construct my get_absolute_url (127.0.0.1:8000/category-slug/id-slug-post <http://127.0.0.1:8000/category-slug/id-slug-post>) for example i have my models like this class Category(...): name = CharField() slug = Slu

any idea for get_absolute_url in m2m categories

2017-02-19 Thread carlos
Hi, any idea how to construct my get_absolute_url ( 127.0.0.1:8000/category-slug/id-slug-post) for example i have my models like this class Category(...): name = CharField() slug = SlugField(.) class MyModel(modesl.Model): post = models.CharField() slug

{% include {% static "css/some.css" %} %} Idea

2016-08-06 Thread Roberth Solis Martínez
Hello guys, some time ago I read that 90% of the time, the CPU waits for an I / O HDD, but django recommends using static files on another server, but if you include the styles and JavaScript in the

Re: Is it good idea to transition from MS Access to a webapp? And if so, is Django a good tool to do it?

2016-05-01 Thread Aaron Cannon
gt;> >>>>> I work for a very small company that I developed an application for, >>>>> all using MS Access (it has back-end MS Access db - although this is >>>>> planned to change to some more robust RDBMS, and a front-end app built >>>&g

Re: Is it good idea to transition from MS Access to a webapp? And if so, is Django a good tool to do it?

2016-04-29 Thread Fred Stluka
ity problems after a few months of working with it. What I thought of, however, is making a website that is only for local use, but is it possible to have the same functionality as a regular front-end app? Is this good idea to begin

Is it good idea to transition from MS Access to a webapp? And if so, is Django a good tool to do it?

2016-04-29 Thread Patrik Mjartan
I cannot see myself working with MS Access in 5 years time as I can already see the scalability problems after a few months of working with it. What I thought of, however, is making a website that is only for local use, but is it possible to have the same functionality as a regular front-end ap

Re: Is it a bad idea to start a project using Django 1.7 at this moment?

2016-01-03 Thread Gary Roach
me sick. On Saturday, January 2, 2016 at 9:01:46 PM UTC+6, Tim Graham wrote: Yes, it's a bad idea. Django 1.7 is unsupported and no longer receives security updates. Please use at least the Django 1.8 series (the latest is 1.8.8 as of now) which is a long-term

Re: Is it a bad idea to start a project using Django 1.7 at this moment?

2016-01-03 Thread Derek
orials properly explaining everything I would > say. Though I could be wrong as I dont have that much experience. Hosting > in general just makes me sick. > > On Saturday, January 2, 2016 at 9:01:46 PM UTC+6, Tim Graham wrote: >> >> Yes, it's a bad idea. Django 1.7 is

Re: Is it a bad idea to start a project using Django 1.7 at this moment?

2016-01-02 Thread Tahmid Khan
Just a general lack of tutorials properly explaining everything I would say. Though I could be wrong as I dont have that much experience. Hosting in general just makes me sick. On Saturday, January 2, 2016 at 9:01:46 PM UTC+6, Tim Graham wrote: > > Yes, it's a bad idea. Dj

Re: Is it a bad idea to start a project using Django 1.7 at this moment?

2016-01-02 Thread Tim Graham
Yes, it's a bad idea. Django 1.7 is unsupported and no longer receives security updates. Please use at least the Django 1.8 series (the latest is 1.8.8 as of now) which is a long-term support release and will receive security updates until April 2018 as described at

Is it a bad idea to start a project using Django 1.7 at this moment?

2016-01-02 Thread Tahmid Khan
Hey guys, I am starting work on a website and I was thinking if starting with Django 1.7 is a bad idea or not, since 1.9 is out right now. With 1.7, I feel like hosting will be less of a headache. -- You received this message because you are subscribed to the Google Groups "Django

Re: Would defining MultiValueDictKeyError in django.core.exceptions be a good idea?

2015-09-05 Thread Tim Graham
The docs mention, "This is a subclass of Python's standard ``KeyError``, so you can stick to catching ``KeyError``." Does this work for you? On Saturday, September 5, 2015 at 8:24:29 AM UTC-4, Aditya Sarode wrote: > > Hi, > > MultiValueDictKeyError has to be imported from django.utils.datastructu

Would defining MultiValueDictKeyError in django.core.exceptions be a good idea?

2015-09-05 Thread Aditya Sarode
Hi, MultiValueDictKeyError has to be imported from django.utils.datastructures now. As a user, it was difficult to find the exact location of MultiValueDictKeyError. Importing it from django.core.exceptions would be easier from the user's perspective. I was curious to know if there was any spe

Re: Design question: Is it really a good idea for models having “side effects”?

2015-02-20 Thread Russell Keith-Magee
On Fri, Feb 20, 2015 at 4:23 PM, Gergely Polonkai wrote: > Hello, > > I’m currently implementing a finite state machine in my application using > Django FSM[1]. In the Usage section of the README the author said that > “This function may contain side-effects, like updating caches, notifying > use

Re: Design question: Is it really a good idea for models having “side effects”?

2015-02-20 Thread Vijay Khemlani
I'm not sure if there's an official stance on that, but I believe that since Django is a "MVT" framework, that kind of logic does not seem to be appropiate neither for templates nor views, so models seem like the logical choice. That way you can also make sure that the side-effect that you want to

Design question: Is it really a good idea for models having “side effects”?

2015-02-20 Thread Gergely Polonkai
Hello, I’m currently implementing a finite state machine in my application using Django FSM[1]. In the Usage section of the README the author said that “This function may contain side-effects, like updating caches, notifying users, etc.” Opposing this statement, the Symfony PHP framework’s aut

Re: any idea

2014-12-03 Thread Avraham Serour
gt; Hello, I need help regarding an idea > I need to do several projects in django say than 3 > project but one of them will have the table users profile > User's other projects could use this table? > another idea would be the same db for all projects? but this is optimal or > not?

any idea

2014-12-03 Thread carlos
Hello, I need help regarding an idea I need to do several projects in django say than 3 project but one of them will have the table users profile User's other projects could use this table? another idea would be the same db for all projects? but this is optimal or not? example: (Project A)

Re: help with idea

2014-10-06 Thread carlos
Collin thank so much really help me! Cheers On Sat, Oct 4, 2014 at 11:09 AM, Collin Anderson wrote: > If you change how your dictionary is formatted, it can be much easier: > dicc_one = { > 'string1': {'fieldsFK__total_one__gt': 0}, > 'string2': {'fieldsFK__total_two__gt': 0}, > 'st

Re: help with idea

2014-10-04 Thread Collin Anderson
If you change how your dictionary is formatted, it can be much easier: dicc_one = { 'string1': {'fieldsFK__total_one__gt': 0}, 'string2': {'fieldsFK__total_two__gt': 0}, 'string3': {'fieldsFK__total_three__gt': 0}, 'string4': {'fieldsFK__total_four__gt': 0}, } results = {} for k, v

help with idea

2014-10-03 Thread carlos
;, 'string4': 'fieldsFK__total_four__gt=0', } results = {} for k,v in dicc_one.items(): print v results[k] = Model.objects.filter(v).count() # this fail no working any idea this error show me: too many values to unpack Cheers -- You rece

Re: idea: deploy static files on github pages CDN

2014-07-18 Thread Cal Leeming [Simplicity Media Ltd]
ites? Cal On Thu, Jul 17, 2014 at 4:09 PM, wrote: > I had an idea today that I wanted to share, if anyone finds it helpful or > has feedback. > > ./manage.py collectstatic > cd $STATIC_ROOT > rm -rf .git/ # optionally don't keep history > git init . > git add . > g

Re: idea: deploy static files on github pages CDN

2014-07-18 Thread Alejandro Perez
I was just thinking about some free place where to put all my static files out of my server.. It would be wonderful if this works in a production server, maybe something with nginx and uwsgi.. Did you try that? Thanks for this tip! -- You received this message because you are subscribed to the

idea: deploy static files on github pages CDN

2014-07-17 Thread cmawebsite
I had an idea today that I wanted to share, if anyone finds it helpful or has feedback. ./manage.py collectstatic cd $STATIC_ROOT rm -rf .git/ # optionally don't keep history git init . git add . git commit -m"static files" git push -f g...@github.com:username/yourrepo master:gh-

Re: Need idea how to keep data for multiple projects in one database

2014-04-11 Thread Gerald Klein
That is where is the magic of relational data comes into play like I said look into the normalization of relational data tables this will give you clues as to exactly how to link the tables as to be able to isolate your data correctly Gerald Klein DBA geraldklein.com contac...@geraldklein.com gera

Re: Need idea how to keep data for multiple projects in one database

2014-04-11 Thread DJ-Tom
The only thing that might be a problem is that participants from all kind of events are mixed in one huge table. When there is a need to do some kind of manual maintenance there is a bigger potential of changing data that belongs to a different event, compared to the old solution where each e

Re: Need idea how to keep data for multiple projects in one database

2014-04-11 Thread Gerald Klein
it sounds like you are on the right track, only thing is that you may want to take a look at data normalization in relational databases, this will give you some clues as to how best link the tables that you are describing On Fri, Apr 11, 2014 at 8:50 AM, DJ-Tom wrote: > Hi, > > I'm currently pl

Need idea how to keep data for multiple projects in one database

2014-04-11 Thread DJ-Tom
Hi, I'm currently planning to port an old application that was used to register participants for events to Django. The old app did not have any real database system, but was based on dBase files. There was one global table where the basic information about each event was stored (like event na

Re: Class-based app (like AdminSite) idea

2013-12-18 Thread Fabio Caritas Barrionuevo da Luz
Omoshiroi. Register your app in django-packages[1] [1] https://www.djangopackages.com Em terça-feira, 17 de dezembro de 2013 13h44min11s UTC-3, Shinya Okano escreveu: > > I have implemented the idea to create a class-based applications (like > AdminSite). > > https://pypi.

Class-based app (like AdminSite) idea

2013-12-17 Thread Shinya Okano
I have implemented the idea to create a class-based applications (like AdminSite). https://pypi.python.org/pypi/django-edamame -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emai

Craziest conference idea ever - announcing next DjangoCon Europe

2012-10-15 Thread Ola Sitarska
Hi guys & girls! Just wanted to let you know that we launched DjangoCon Europe 2013 website. This time we've decided to put some more magic and came up with this crazy idea of throwing a fun Django conference in a real CIRCUS tent, so make sure to check it out: http://2013.djangocon.e

Craziest conferenece idea ever - announcing next DjangoCon EU

2012-10-15 Thread Ola Sitarska
Hi guys! Just wanted to let you know that we launched DjangoCon Europe 2013 website. This time we've decided to put some more magic and came up with this crazy idea of throwing a fun Django conference in a real CIRCUS tent, so make sure to check it out: http://2013.djangocon.eu/ We

Re: Pickling and caching the current request.user, good or bad idea?

2011-10-29 Thread Kevin
extra "if" instead of copying the same line to set the request variable twice. On Oct 29, 5:45 am, Kevin wrote: > In my attempts to lower database hits, I found that on most of my > pages, auth_user is hit every time.  I had an idea about caching this > object in the current ses

Pickling and caching the current request.user, good or bad idea?

2011-10-29 Thread Kevin
In my attempts to lower database hits, I found that on most of my pages, auth_user is hit every time. I had an idea about caching this object in the current session. Is this a good idea, or will it cause more problems than it helps? If so, what type of problems will I be looking at? My app

Re: Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-08 Thread Cal Leeming [Simplicity Media Ltd]
Also, my apologies to OP for misunderstanding his original request :) Cal On Thu, Sep 8, 2011 at 1:26 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Again - that subject has already been heavily discussed and is already a > work in progress :X > > Automat

Re: Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-08 Thread Cal Leeming [Simplicity Media Ltd]
Again - that subject has already been heavily discussed and is already a work in progress :X Automating the install for the end user is not a simple task - unless you want to go down the VM Appliance route. See the following threads: http://www.mail-archive.com/django-users@googlegroups.com/msg1

Re: Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-08 Thread Donald Stufft
Cal, He's not looking to automate the install for the Developer of a Django Project, but for the End Users of a Django Project. So if I, or another developer wrote a WordPress clone using Django and then allow a third party to come and download my Wordpress clone and easily install it. On

Re: Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-08 Thread Cal Leeming [Simplicity Media Ltd]
The subject of self contained deployments has already been *heavily* discussed in other threads. Self contained / single binary deployments is something that Roberto @ UNBIT is currently working on (and myself), and if you do a search on the mailing list, you'll see tons of ideas on this already. A

Re: Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-08 Thread Donald Stufft
This is a hard question. It would probably be nice to offer a self contained deployment that nginx/apache could just proxy too, maybe pick that as the default, and then add in writing a fcgi or wsgi file for use with regular hosting. On Thursday, September 8, 2011 at 7:34 AM, graeme wrote: > H

Re: Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-08 Thread graeme
He wants to be able to emulate the installation of a typical PHP CMS. This is often 1) get database username and poassword, 2) copyfiles to server, 3) navigate to an install URL, 4) fill in db username and password and other config on a set of forms on web page. Installing Django and the app you w

Re: Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-08 Thread graeme
On Sep 8, 12:45 am, Calvin Spealman wrote: > Can you explain to those of us to whom it is not obvious, what is the > point of this proposal? I don't understand what problem it would > solve. > > > > > > On Wed, Sep 7, 2011 at 10:41 AM, Alec Taylor wrote: > > Good morning, > > > I have just rece

Re: Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-08 Thread graeme
On Sep 8, 12:45 am, Calvin Spealman wrote: > Can you explain to those of us to whom it is not obvious, what is the > point of this proposal? I don't understand what problem it would > solve. The commonest use case would be something like this: Someone wants to use a Django app to run a site: e.g

Re: Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-07 Thread Alec Taylor
Looks like the initial mockup for the final display didn't Ctrl+V properly, here it is: http://i55.tinypic.com/s5fivd.png The problem I'm trying to solve is one of deployment (and minimalist overvie

Re: Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-07 Thread Calvin Spealman
Can you explain to those of us to whom it is not obvious, what is the point of this proposal? I don't understand what problem it would solve. On Wed, Sep 7, 2011 at 10:41 AM, Alec Taylor wrote: > Good morning, > > I have just recently starting migrating over from WordPress and Drupal to > the wor

Re: Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-07 Thread Doug Ballance
I would agree with Donald, and expand on that to say that an installer would probably be best written in php for widest compatibility. A php based installer would run outof the box on most webservers, and be able to give a guided overview of the python/web environment setup. It would easily be abl

Re: Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-07 Thread Donald Stufft
We talked a little on IRC, but just thought i'd reiterate my thoughts. This should not be in core, and I don't believe it ever has a chance of being in core. That being said, I think that an external "installer" app like this wouldn't be the worst thing in the world, and could help to make a

Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-07 Thread Alec Taylor
Good morning, I have just recently starting migrating over from WordPress and Drupal to the world of DJango. First of all, let me say that yes, I am aware that DJango is not a CMS!!! Now, onto my suggestions on how to streamline DJango deployment. = What's wrong with the current method? =

Re: Extending the ManyToMany relation, maybe a bad idea

2011-07-28 Thread Joshua Russo
Ya, sorry, I was just getting frustrated because I was taking longer than I wanted to implement this. The formset is what I ended up with. The tricky part is still that I want a defined list of options in the formset, so I can't just make it a model formset. I haven't worked in Django in a while

Re: Extending the ManyToMany relation, maybe a bad idea

2011-07-28 Thread Tom Evans
On Thu, Jul 28, 2011 at 3:37 AM, Joshua Russo wrote: > I keep thinking I'm doing something wrong here. From the lack of responses I > feel like there is no real good way to handle a group of options with > additional relational data. Or alternatively, no-one understood what you were trying to do

Re: Extending the ManyToMany relation, maybe a bad idea

2011-07-27 Thread Joshua Russo
Ok, so I can retrieve this extra data in the __init__ of the model form, but it seems like I will need to skip all of the cleaning and automatic validation of the form; because the data, to be displayed with the associated checkbox will have to be included with the items field in the Organizati

Re: Extending the ManyToMany relation, maybe a bad idea

2011-07-27 Thread Joshua Russo
My problem is that I have multiple values and I need to associate the list of extra fields with selected relations for the ManyToMany relation. Below is a simplified version of what my setup is. I want to create an edit form for Organization, but I'm struggling with how best to save (and re-re

Re: Extending the ManyToMany relation, maybe a bad idea

2011-07-27 Thread Shawn Milochik
You can override the ModelForm. Add the fields to the ModelForm. Set the initial values by overriding __init__, and save them by overriding the save() method. Should be pretty simple. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Extending the ManyToMany relation, maybe a bad idea

2011-07-27 Thread Joshua Russo
Someone tell me where I'm going wrong conceptually here, I feel like I'm making this too hard. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/T5m8OIVMyusJ

Re: Extending the ManyToMany relation, maybe a bad idea

2011-07-27 Thread Joshua Russo
I am using the through keyword. I'm just trying to figure out the most efficient way to create a form field and widget to update the data. What I'm struggling with is how a ManyToMany field with an intermediate table containing extra fields fits into the ModelForm saving. I'm just not sure wher

Re: Extending the ManyToMany relation, maybe a bad idea

2011-07-25 Thread Shawn Milochik
Have you looked into creating your own connector table for your ManyToMany using the 'through' keyword? https://docs.djangoproject.com/en/1.3/topics/db/models/#many-to-many-relationships -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Extending the ManyToMany relation, maybe a bad idea

2011-07-24 Thread Joshua Russo
Ok, so I've created a structure of selectable properties, that for the most part is a straight forward many-to-many relationship. What I've added is a character field in the relationship table that should conditionally display based on the setup of the property being selected. What I wanted to

Re: adding model_dict['admin'] = model_admin is good idea?

2011-03-04 Thread hdknr
Thanks Bill You're right. I'll try in the other way with using template tags. Because the only useful information is "admin_url" like '/myapp/ mymodel', the tag will find tempate like 'templates/admin/myapp/mymodel/ menu.html' and return render_to_string() of that. --- hideki On 3月5日, 午前2:07, Bi

Re: adding model_dict['admin'] = model_admin is good idea?

2011-03-04 Thread Bill Freeman
On Fri, Mar 4, 2011 at 1:51 AM, hdknr wrote: > Hello, > > I'm customizing admin UI to add extra menus but I found it is not > easy. So thinking of adding "admin" to model_dict in index() and > app_index() ( source:django/trunk/django/contrib/admin/sites.py ) to > refere to ModeAdmin objects in tem

adding model_dict['admin'] = model_admin is good idea?

2011-03-03 Thread hdknr
Hello, I'm customizing admin UI to add extra menus but I found it is not easy. So thinking of adding "admin" to model_dict in index() and app_index() ( source:django/trunk/django/contrib/admin/sites.py ) to refere to ModeAdmin objects in templates. Is there any pitfall in the security point of vie

  1   2   3   >