how to copy data per user

2015-10-07 Thread Jun Tanaka
Hello all! I use Django 1.6 I would like to copy data from one user to another. Say user 1 has data_set_A in database and I would like to copy data_set_A to user 2, user3, user4. If you could tell me any simple way to do so, I would appreciate it. Thank you, Jun -- You received this messag

getting started with django

2015-10-07 Thread Anagha R
How to get stated with django?How can we contribute to it? -- 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

Re: getting started with django

2015-10-07 Thread Tim Graham
Getting Started with Django: https://docs.djangoproject.com/en/stable/intro/ Contributing: https://docs.djangoproject.com/en/dev/intro/contributing/ https://docs.djangoproject.com/en/dev/internals/contributing/ On Wednesday, October 7, 2015 at 8:12:11 AM UTC-4, Anagha R wrote: > > How to get stat

Re: how to copy data per user

2015-10-07 Thread Tim Graham
I don't think you've provided enough details about your models for anyone to provide an answer. p.s. Django 1.6 is unsupported and has unfixed security vulnerabilities so you should try to upgrade to a supported version. https://www.djangoproject.com/download/#supported-versions On Wednesday, O

Re: How to run all tests in INSTALLED_APPS with the new test runner 1.6?

2015-10-07 Thread Tim Graham
Copying the old test runner from an old version of Django seems like a fine solution. I thought someone might have published it on PyPI, but I couldn't find it if so. On Wednesday, October 7, 2015 at 2:06:08 AM UTC-4, Gergely Polonkai wrote: > > I'm not sure I understand what you want to achieve

Re: are parameters compulsary in an url pattern?

2015-10-07 Thread Tim Graham
If you can accomplish what you need without passing parameters, there is certainly no requirement to do so. Have you read: https://docs.djangoproject.com/en/stable/topics/http/urls/ ? On Wednesday, October 7, 2015 at 12:10:54 AM UTC-4, krmane wrote: > > Dear all, > I just wish to know if I must

Re: How to run all tests in INSTALLED_APPS with the new test runner 1.6?

2015-10-07 Thread jordi . gutierrez . hermoso
No, the new test runner does not run any 3rd party apps not in my project, and it does not run django.contrib either. On Wednesday, October 7, 2015 at 2:06:08 AM UTC-4, Gergely Polonkai wrote: > > I'm not sure I understand what you want to achieve. I use 1.8 and it runs > all tests for all apps

Re: How to run all tests in INSTALLED_APPS with the new test runner 1.6?

2015-10-07 Thread jordi . gutierrez . hermoso
Okay, I'll try grabbing the old test runner from git, thanks. On Wednesday, October 7, 2015 at 8:38:40 AM UTC-4, Tim Graham wrote: > > Copying the old test runner from an old version of Django seems like a > fine solution. I thought someone might have published it on PyPI, but I > couldn't find

Re: Formset questions: data vs. initial values

2015-10-07 Thread Shawn Milochik
You *can* use ModelForms for this. You don't need an active instance. Iterate over the days in the month, and if you have an instance in your database you instantiate a ModelForm where "instance=thing." If not, you instantiate a ModelForm that has no instance, and you send as data "" (empty string

Re: Are jobs postings allowed on this forum?

2015-10-07 Thread John Shields
Thanks Russell! On Tuesday, October 6, 2015 at 8:42:08 PM UTC-4, Russell Keith-Magee wrote: > > Hi John, > > As long as they're on topic (i.e, for Django jobs), you're clear about > the geographical constraints on the job (e.g., only looking for people > in city X, relocation budget available;

Re: Load a static file with a variable name

2015-10-07 Thread I . Dié
Thank you very much monsieur François Le mardi 6 octobre 2015 20:40:01 UTC+2, François Schiettecatte a écrit : > > The '+' is an error, the line look more like this: > > /> > > On Tue, Oct 6, 2015 at 2:33 PM, I. Dié > > wrote: > >> I tried in your way to concatenate, I don't get any exception,

Need For Mid Level Full Stack Developer (Python / Django) at BITS

2015-10-07 Thread John Shields
Hi Folks, there is a contract opportunity at a US Federal Agency in Bethesda, MD. Due to Federal Agency constraints the position is onsite only, background check and fingerprinting is required. The length is 8 months but could extend depending on the developers deliverables. Relo package

Re: How to run all tests in INSTALLED_APPS with the new test runner 1.6?

2015-10-07 Thread Carl Meyer
On 10/07/2015 06:57 AM, jordi.gutierrez.herm...@ecometrica.org wrote: > Okay, I'll try grabbing the old test runner from git, thanks. That should work fine. You should be aware, though, that specifically in the case of the django.contrib app tests, we make no promise that they will pass under you

Re: How to run all tests in INSTALLED_APPS with the new test runner 1.6?

2015-10-07 Thread jordi . gutierrez . hermoso
On Wednesday, October 7, 2015 at 10:16:30 AM UTC-4, Carl Meyer wrote: > > You should be aware, though, that specifically in the case of the > django.contrib app tests, we make no promise that they will pass under > your project's configuration, > That's fine. I just want to make sure *we *didn'

Re: Using Django and R in a production environment?

2015-10-07 Thread Mike Covington
Not sure if this approach is useful for you, but the following is how we use R and Django together. We use R to build Shiny apps. These are served on their default port 3838 (which users never actually go to directly). I've made a Django app to manage the Shiny apps and simply place them in an

Re: Possible Bug in password_reset_form

2015-10-07 Thread mwidman
Thank you. I am not sure that solves the problem though (or I just don't understand how to do this): If I am calling password_reset directly from my urls, how do I pass a requestContext into the "extra_email_context"? There is no request sent to "render_to_string" so the RequestContext would

Re: Possible Bug in password_reset_form

2015-10-07 Thread Tim Graham
You could create a custom view function that wraps password_reset() and adds a RequestContext. On Wednesday, October 7, 2015 at 1:05:12 PM UTC-4, Mike Widman wrote: > > Thank you. > > I am not sure that solves the problem though (or I just don't understand > how to do this): If I am calling pas

Fetching data in Django project

2015-10-07 Thread Bhanu Kathuria
By scrapping I have collected database from other website. How can I show it in my Django project. -- 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: How to run all tests in INSTALLED_APPS with the new test runner 1.6?

2015-10-07 Thread Tim Graham
And actually as of Django 1.8, the contrib tests aren't shipped inside each application directory, so they won't be discovered even if you switch to the old test runner. On Wednesday, October 7, 2015 at 11:21:54 AM UTC-4, jordi.gutie...@ecometrica.org wrote: > > On Wednesday, October 7, 2015 at

KeyError

2015-10-07 Thread Benjamin Smith
I am making a user registration form to register new users using the User model. This is the forms.py: class UserForm(forms.ModelForm): confirm_email = forms.EmailField(label="Confirm email") def clean(self): email = self.cleaned_data['email'] confirm_email = self.cleaned

KeyError

2015-10-07 Thread Benjamin Smith
I am making a registration form to register new users using the User model. This is the forms.py: class UserForm(forms.ModelForm): confirm_email = forms.EmailField(label="Confirm email") def clean(self): email = self.cleaned_data['email'] confirm_email = self.cleaned_data

Re: Fetching data in Django project

2015-10-07 Thread Daniel Roseman
On Wednesday, 7 October 2015 18:19:30 UTC+1, Bhanu Kathuria wrote: > > By scrapping I have collected database from other website. How can I show > it in my Django project. > With a URL, a view, and optionally a template. Just like any other data. -- DR. -- You received this message because yo

Re: Using Django and R in a production environment?

2015-10-07 Thread Andrew Farrell
One option is to use the conda package manager (you can get that here ) to create an environment with `conda create --name django+r django=1.8` activate it with `source activate django+r` And then install R packages with something like `conda install --channe

Re: KeyError

2015-10-07 Thread Vijay Khemlani
"is_valid" is a method, you should call if user_form.is_valid(): ... On Wed, Oct 7, 2015 at 2:14 PM, Benjamin Smith wrote: > I am making a registration form to register new users using the User model. > > This is the forms.py: > > class UserForm(forms.ModelForm): > confirm_email = forms

Re: Load a static file with a variable name

2015-10-07 Thread Simon Charette
You'll want to use Because François' suggestion will break if you use a static file storage that doesn't allow missing files reference such as the ManifestStaticFilesStorage . Simon Le mardi 6 octobr