RE: Project together

2023-11-23 Thread Iwambe denen andy
Yeah it makes sense to me On Nov 23, 2023 7:24 PM, "marvel" wrote: Im interested Sent from Mail for Windows *From: *Denny *Sent: *Thursday, 23 November 2023 19:22 *To: *django-users@googlegroups.com *Subject: *Re: Project together

Re: How to implement visa card and debit card payment in django

2023-03-13 Thread Andy Piltser-Cowan
Do you have an account with a payment processing company? That's the first step; second step is read their documentation about API access / web integration. On Friday, March 10, 2023 at 10:02:58 AM UTC-5 Ntanda Aloysius wrote: > how can I implement payment integartion in my Django ecommerce

double forms

2022-05-06 Thread Andy Li
Hi I'm trying to put two forms, here is my code: ``` class FrontView(LoginRequiredMixin, UserPassesTestMixin, FormView): template_name = "template.html" form_class = FirstForm coupon_form = SecondForm def get_context_data(self, **kwargs): kwargs['second_form'] = self.second_form return

File Upload

2021-09-04 Thread Williams Andy Inc
Hi i am am trying to upload a file through a function but not the form and am facing difficulties how do i upload a file from server path without using the template form or forms.form ```class Image(models.Model): name = models.CharField(max_length=40, blank=True, unique=True)

Re: please help! not getting the desired output. how to add multiple orders via Django forms using Javascript?

2021-06-19 Thread Williams Andy Inc
Anyone interested in talking about django sharing their knowledge or path or want to learn more? meeting Now https://meet.google.com/wcv-ojtf-vhi On Sat, Jun 19, 2021 at 10:31 AM DJANGO DEVELOPER wrote: > please can someone help me? > > On Sat, Jun 19, 2021 at 9:31 AM DJANGO DEVELOPER >

Re: Need to volunteer in a django project to emprove my knowledge

2021-06-18 Thread Williams Andy Inc
Today for all interested in learning together... we can have a google meeting time is 4pm gmt +3 DJANGO PRACTICE SESSIONS Saturday, June 19 · 4:00 – 6:00pm Google Meet joining info Video call link: https://meet.google.com/wcv-ojtf-vhi On Fri, Jun 18, 2021 at 4:08 PM Williams Andy Inc wrote

Re: Need to volunteer in a django project to emprove my knowledge

2021-06-18 Thread Williams Andy Inc
by weekend. On Fri, Jun 18, 2021 at 3:39 PM Goke Aruna wrote: > Dear Williams > > I am interested in learning with you. > > Regarde > > On Thu, Jun 17, 2021, 1:13 PM Williams Andy Inc > wrote: > >> I currently have a django project going on incase y

Re: Need to volunteer in a django project to emprove my knowledge

2021-06-17 Thread Williams Andy Inc
;> https://github.com/swisscodes >> >> On Thu, Jun 17, 2021 at 5:50 PM Williams Andy Inc >> wrote: >> >>> Its open for anyone ready to participate just add me on my github or msg >>> me here we can do some google meets or zoom ,,, for example now i wan

Re: Hiring Django developers in Mumbai

2021-06-17 Thread Williams Andy Inc
Am not in india but ill like to collaborate with you so i can learn from other developers and also add to my cv. here is my latest work. https://swiss-social.herokuapp.com/ On Thu, Jun 17, 2021 at 10:00 PM Prasad Ajmire wrote: > Interested > > On Sun, May 23, 2021, 9:28 AM Sidhesh D wrote: >

Re: Need to volunteer in a django project to emprove my knowledge

2021-06-17 Thread Williams Andy Inc
https://github.com/swisscodes On Thu, Jun 17, 2021 at 5:50 PM Williams Andy Inc wrote: > Its open for anyone ready to participate just add me on my github or msg > me here we can do some google meets or zoom ,,, for example now i want to > add the edit and delete button using jquery

Re: Need to volunteer in a django project to emprove my knowledge

2021-06-17 Thread Williams Andy Inc
Pérez wrote: > I´m intrested on participate too...is it posiible??? Thanks, Boris > > 2021-06-17 8:13 GMT-04:00, Williams Andy Inc : > > I currently have a django project going on incase you want to learn or > > contribute or collaborate for learning. > > > > h

Re: Need to volunteer in a django project to emprove my knowledge

2021-06-17 Thread Williams Andy Inc
I currently have a django project going on incase you want to learn or contribute or collaborate for learning. https://swiss-social.herokuapp.com/ code https://github.com/swisscodes/social-app anyone want to learn or collaborate msg me. we could do video learning by zoom or google. can share my

Re: Working with forms

2021-06-15 Thread Williams Andy Inc
for now reason its now showing up thanks. i guess i needed to do hard refresh with f5 although i was using {% now "U" %} On Tue, Jun 15, 2021 at 10:10 AM Williams Andy Inc wrote: > class LoginForm(forms.Form): > username = forms.CharField( > label

Re: Working with forms

2021-06-15 Thread Williams Andy Inc
il", } ), ) the class is not showing up but the placeholder shows up without the f007 On Tue, Jun 15, 2021 at 10:04 AM Williams Andy Inc wrote: > Thanks am already trying that, and using that works for > adding placeholder, but then it doesn't add a class, if it could

Re: Working with forms

2021-06-15 Thread Williams Andy Inc
can be done with widgets I am not sure > https://docs.djangoproject.com/en/2.2/ref/forms/widgets/ > > On Tue, 15 Jun 2021 at 11:24, Williams Andy Inc > wrote: > >> I would like to know is there any easier way rather than overriding >> super, how do i add icons into the ht

Working with forms

2021-06-14 Thread Williams Andy Inc
I would like to know is there any easier way rather than overriding super, how do i add icons into the html input eg to have a key icon on the password field without installing any third party app also. is the best solution to render form in html and pass field values to django? or is there

Re: Django request.session persist between logins of different users.

2021-06-08 Thread Williams Andy Inc
Did you have your own logout function view or class view? On Tue, Jun 8, 2021 at 9:17 AM Mateusz Wasielewski < mateusz.wasielewsk...@gmail.com> wrote: > Hello, > I want to implement two factor authetication in my django app. The steps > are as follows: > 1. User need to register > 2. User need

Suggestions for update

2021-06-08 Thread Williams Andy Inc
Hi and thanks to everyone, I have a few opinions and suggestions I would like to talk about which if possible I would also be part of contributors. We are all Django users, there are many professionals here and also there are beginners and learners too, like myself a learner too. I am on a

Re: Using Countries with django

2021-06-07 Thread Williams Andy Inc
thank you very much On Mon, Jun 7, 2021 at 7:13 PM dupakoor kannan wrote: > Hi, > > Here is the list https://djangopackages.org/grids/g/countries/. > > Hope this helps > > Kannan > > On Sun, Jun 6, 2021 at 4:22 PM Williams Andy Inc > wrote: > >> Can

Using Countries with django

2021-06-06 Thread Williams Andy Inc
Can anyone recommend a 3rd party app to me to use with forms form countries and states and cities of the world .. thank you -- 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

Re: Django/uWSGI/nginx under load

2021-02-20 Thread Andy Robinson
I'm unsure what you mean - do you mean "are we executing raw SQL queries and a Python db api, or using Django's ORM?" If so, usually the latter but this is definitely not a problem of poorly written queries, we've profiled them. - Andy On Saturday, 20 February 2021 at 17:44:45

Re: Django/uWSGI/nginx under load

2021-02-20 Thread Andy Robinson
Thanks for this. 27k file descriptors out of about 370k allowed. I presume that means this isn't a problem? (We run a lot of different virtual hosts on this box, each with a few Django processes) - Andy On Saturday, 20 February 2021 at 16:15:12 UTC mob...@aldian.net wrote: > Ch

Django/uWSGI/nginx under load

2021-02-20 Thread Andy Robinson
can and am very grateful for any help... Best Regards Andy Robinson -- 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...@googl

CockroachDB & Django

2019-07-08 Thread 'Andy Woods' via Django users
o our open-source Django prototype. We'd also love any beta testers who would be willing to give our prototype a try and provide feedback to us. If this is something you might be interested in, please let me know. Thank you! Andy a...@cockroachlabs.com -- You received this message because

Re: Is Django and DjangoRestAPI's the correct framework for my project?

2018-11-22 Thread Andy Gardner
to set up a view and a serializer?) Andy On Thursday, 22 November 2018 17:06:12 UTC, Tim Vogt wrote: > > What problem are you trying to solve? > What reason do You use djanfo now for? > > And what do You want with the json? > Stored? Displayed? Or put trough as other apps might u

Is Django and DjangoRestAPI's the correct framework for my project?

2018-11-22 Thread Andy Gardner
messaging function or does the framework actually have something already to do this kind of thing? Thanks in advance for answers/suggestions etc? Andy -- CONFIDENTIALITY NOTICE: This e-mail transmission and/or any attachments may contain confidential information belonging to the sender

Re: How to clean a model after the related models inline forms have been saved?

2018-08-26 Thread Andy
Please forget about the persisting data part. The problem is that inside the parent form i dont have access to the related data and the formsets new related data is validated after the parent models data. Inside the formset every related data model does not have access to the other related

Re: How to clean a model after the related models inline forms have been saved?

2018-08-26 Thread Andy
Am Sonntag, 26. August 2018 18:29:49 UTC+2 schrieb Jason: > > I think we're missing a few things. how fast does this query with updated > values execute after the form submits? > a neglectable amount of milliseconds > if you need to return the value back to the view, can't you do some

Re: How to clean a model after the related models inline forms have been saved?

2018-08-26 Thread Andy
Am Sonntag, 26. August 2018 18:07:25 UTC+2 schrieb Jason: > > why would you want to persist unvalidated data to your db? > >> >> Well, i dont necessarily have to, but i somehow need to be able to perform a query with all updated data taken into account. The easiest solution i came up with is

How to clean a model after the related models inline forms have been saved?

2018-08-26 Thread Andy
I want to execute a check after the related data from the admin has been saved, but the default clean methods get executed before the formsets are saved. Where could i place my check to have access to a full version of what has been changed on the admin page? -- You received this message

Re: Django and Fullcalendar.

2018-05-01 Thread Andy Grabow
Okay, then strip your template until you understand what’s happening. Elias Coutinho <coutinho.el...@gmail.com> schrieb am Mo. 30. Apr. 2018 um 22:29: > No error, it returns a template full of cluttered tags. > > 2018-04-28 2:41 GMT-03:00 Andy <kakulu...@gmail.com>: &g

Re: django does not open html file properly

2018-05-01 Thread Andy Grabow
ght, it's too complicated. > I could zip gephi's graphics and make them downloadable on my site, how > could i do that? > How can i create a "download button" that allows the user to download my > zip files? > > Il giorno venerdì 27 aprile 2018 23:24:43 UTC+2, Andy ha scri

Re: Django and Fullcalendar.

2018-04-27 Thread Andy
What kind of error are you getting? -- 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

Re: django does not open html file properly

2018-04-27 Thread Andy
It looks as if you see all contents of you index.html while also missing all dependencies .. check the network tab of your browser to confirm this. The report created by gephi is probably an html page that is soppused to be opened via the browser directly or served with a webserver. Just

is that really not possible with the Django ORM?

2018-04-27 Thread Andy
In my 10 years playing with Django i found a few bugs, but i never had to fall back to a raw SQL query. Fiddling with Django for almost a full day now im out of ideas except of asking for help here: I have an organizer app with days containing shifts and people working those shifts (M2M).

Re: Login with email address, mobile number or username.

2018-04-19 Thread Andy
Firt of all you should start with you own user model because changing it afterwards is not that easy like stated in the docs. >From there you can change the username restrictions to your liking and implement the cell_phone field. Then implement you own version of ModelBackend which is also

cors and images via dj-static

2018-04-19 Thread Andy
Hi, is there a way to serve media files via dj-static with the addition of CORS headers? -- 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

Re: sharing sessions

2018-03-19 Thread Andy
okay, i made it work like it already should have before my posting .. if only there was no typo in my secret key and askbot was not setting the session serializer to PickleSerializer Works great now! Am Montag, 19. März 2018 12:39:16 UTC+1 schrieb Andy: > > I want to have som

sharing sessions

2018-03-19 Thread Andy
I want to have some sort of SingleSignOn for my application and a forum based on askbot (also Django). I built a REST API to get the session from my application and want to replicated and also get the user from inside askbot. This kind of works, but i cannot decode the session inside the forum.

Re: Reverse for 'detail' with arguments '('',)' not found. 1 pattern(s) tried: ['(?P[0-9]+)/$']

2018-03-08 Thread Andy
which one of your calls to detail are failing? or reverse('student:detail', kwargs={'pk': self.pk}) ? if its the second one, try with args=[self.pk] Am Donnerstag, 8. März 2018 19:48:44 UTC+1 schrieb anyi.lloyd: > > Yes it is named profile. > > - Reply message ----- &

Re: Reverse for 'detail' with arguments '('',)' not found. 1 pattern(s) tried: ['(?P[0-9]+)/$']

2018-03-08 Thread Andy Grabow
st wanted to add to an existing profile > in the db with generic view. > > > - Reply message - > From: "Andy" <kakulu...@gmail.com> > To: "Django users" <django-users@googlegroups.com> > Subject: Reverse for 'detail' with arguments '('',)' not

Re: Borrowing functionality from Django Admin forms

2018-03-08 Thread Andy
Take a deeper look at the *RelatedFieldWidgetWrapper (https://github.com/django/django/blob/1.3.2/django/contrib/admin/widgets.py#L200)* Am Mittwoch, 7. März 2018 21:11:18 UTC+1 schrieb Justin Johnson: > > I have a user who saw how new objects can be created using the Admin > forms, and asked

Re: Reverse for 'detail' with arguments '('',)' not found. 1 pattern(s) tried: ['(?P[0-9]+)/$']

2018-03-07 Thread Andy
If you actually are inside the profile create view, the profile probably does not have an id yet and thats why the url lookup is failing. The ID will be created on first save of the object. Am Dienstag, 6. März 2018 00:11:53 UTC+1 schrieb anyi.lloyd: > > Am new to Django, please i need help

Re: autocomplete

2018-02-27 Thread Andy
for any more complicated admin autocompletes or stuff in the frontend use djang-select2 Am Montag, 26. Februar 2018 18:55:15 UTC+1 schrieb Mafabi Emmanuel: > > how do i design an autocomplete in django 2.0 > > > -- You received this message because you are subscribed to the Google Groups

Re: Seeking professional help for frontend design for a small django project

2018-02-27 Thread Andy
Whats in it for the potetial frontnd developer? Money? Just fame? How many pages are you talking about? Am Dienstag, 27. Februar 2018 00:04:45 UTC+1 schrieb cjwalter: > > Hi everybody > > I’ve started a small django website which is up and running but could > benefit from some frontend polish

Re: help with the poll application." Writing your first Django app".

2018-02-23 Thread Andy
thx :) Am Freitag, 23. Februar 2018 22:16:12 UTC+1 schrieb Haven McConnell: > > This is very good explaintaion > > On Wednesday, February 21, 2018 at 7:17:48 AM UTC-5, Sebastian Saade wrote: >> >> >>

Re: Getting complex query set with a many to many relationship in django

2018-02-23 Thread Andy
If you want to have Articles then get Article.objects.filter(section=xy).oder_by('section__order') Am Donnerstag, 22. Februar 2018 20:47:31 UTC+1 schrieb James Farris: > > I am trying to *get all article objects that are part of a section* in an > edition that is in an issue. I am stumped, even

Re: template parse error

2018-02-22 Thread Andy
Are you using the defautlt django template engine or something else? Looks correct, but please show the full template, because there might be errors before that point causing this error message. Am Donnerstag, 22. Februar 2018 07:16:32 UTC+1 schrieb suabiut: > > Could not parse the remainder:

Re: Django web app reaching rest api and CORS problem

2018-02-21 Thread Andy
Why do you use a third component to have a rest api? instead of the django rest framework? Since the problem is inside your custom falcon server, its not in any way related to django .. ask the falcon comunity here instead: https://gitter.im/falconry/user Am Mittwoch, 2. November 2016

Re: help with the poll application." Writing your first Django app".

2018-02-21 Thread Andy
You are not using Django 2.0 and thus the path function is not existing in Django 1.11. Django 2.0 can only be installed with python3, while you are trying to use python 2.7 for that job. apt install python3 python3-pip pip3 install virtualenv virtualenvwrapper mkvirtualenv

Re: how can i allow visitors to make an account and post pictures in my django website. something like this

2018-02-20 Thread Andy
Have a look at the official tutorial, give you users acces to the admin and have a look at the fielfield which once you created an admin for your model containing this field will allow anyone to upload files to your project. Am Dienstag, 20. Februar 2018 13:21:10 UTC+1 schrieb miraj: > > how to

Re: How do I get dynamic choices to a select widget at render time?

2018-02-20 Thread Andy
use django-select2 Am Dienstag, 20. Februar 2018 01:17:26 UTC+1 schrieb Mike Dewhirst: > > Here is an example of get_choices() output ... it comes from a method on > the Question model. > > [('A', 'A - Once?'), ('B', 'B - Twice?'), ('C', 'C - Four times?'), > ('D', 'D - Twelve times?'),

Re: DjangoUnleashed-2.0

2018-02-20 Thread Andy
How many problems are there and how big is this section? There is quite a gap from 1.8 to 2.0 mainly the new locations of url functions which are nagging you. How can i help? Am Dienstag, 20. Februar 2018 13:21:10 UTC+1 schrieb Midhat Šibonjić: > > Django 2.0 released before 2,5 months. We

Re: Strange problem with Django

2018-02-18 Thread Andy
How did you try to run the command? It sounds that you told you computer to open the file instead. You have to run that in the command shell of your OS. (Terminal on OSX or Powershell in Windows) Am Samstag, 17. Februar 2018 18:48:58 UTC+1 schrieb Tet Yeap: > > Hi, > > I was trying to learn

Re: edit model properties in the admin

2018-02-14 Thread Andy
Am Mittwoch, 14. Februar 2018 14:45:49 UTC+1 schrieb Adler Neves: > > You can have an OneToOneField in the profile referencing Django's User > model with `related_name='profile'`, Well, i know this and the related entry is accessible even without explicitly defining the related_name. You

Re: edit model properties in the admin

2018-02-14 Thread Andy
. Am Mittwoch, 14. Februar 2018 13:54:30 UTC+1 schrieb Gonzalo Delgado: > > On 14/2/18 08:05, Andy wrote: > > Im trying to have a custom admin that is also able to edit some model > > properties, but putting those properties into my fieldsets its > complaining > &

edit model properties in the admin

2018-02-14 Thread Andy
Im trying to have a custom admin that is also able to edit some model properties, but putting those properties into my fieldsets its complaining Unknown field(s) (foo, bar) specified for Profile. Check fields/fieldsets/exclude attributes of class ProfileAdmin. The properties work in

Re: Syntax Error when trying to migrate to Postgresql

2018-02-14 Thread Andy
Could you post a few more lines of this settings.py? Preferably the whole DATABASES definition. Just in case there actually is a weird invisible character try retyping 'postgresql', but more likely it looks as if you are using wrong quotation marks other than ' or ". I dont even have on my

Re: BooleanField ignored by makemigrations Django 2.0

2018-02-13 Thread Andy
Your app is most likely not listed in installed_apps when makemigrations is not picking up anything. Or its just because you named it model.py instead of models.py? Is any other model of that app picked up by makemigrations? Am Donnerstag, 8. Februar 2018 23:28:19 UTC+1 schrieb Gary Mumford: >

Re: Travis Problem

2018-02-05 Thread Andy Grabow
Thx i will test those versions myself. -- 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

Re: Travis Problem

2018-02-05 Thread Andy
--- > Traceback (most recent call last): > File "/home/rodrigo/code/django-secrets/django_secrets/tests.py", line > 32, in test_export > command.handle() > File > "/home/rodrigo/code/django-secrets/django_secrets/management/commands/export_secrets.py", > >

Re: Travis Problem

2018-02-05 Thread Andy
have some minutes to spare, please test it and tell me if you can reproduce the problem. Am Montag, 5. Februar 2018 16:30:21 UTC+1 schrieb Matemática A3K: > > > > On Mon, Feb 5, 2018 at 12:23 PM, Andy <kaku...@gmail.com > > wrote: > >> Which line number are you r

Re: Travis Problem

2018-02-05 Thread Andy
Which line number are you referring to? i didnt notice missing vars. Am Montag, 5. Februar 2018 15:50:14 UTC+1 schrieb Matemática A3K: > > > > On Thu, Feb 1, 2018 at 9:58 AM, Andy <kaku...@gmail.com > > wrote: > >> Hi, >> >> im trying to convince Tr

Re: In the Admin, Is it possible to make filters on foreign keys usable with lots of related objects?

2018-02-02 Thread Andy
No you didn’t miss anything. He did not understand your question. But like I said before you can always build your own filter. Your problem is highly custom to your DB and model relations. You can’t expect any framework to already have a matching component for that. In my 9 years of Django

Re: In the Admin, Is it possible to make filters on foreign keys usable with lots of related objects?

2018-02-02 Thread Andy
You should rather use search_fields instead of filtering together with the sorting ability of the admin. Thats much more suited for a scenario like described above. The filter is for status fields or something with just a few different entries, otherwise build your own filter to filter for some

Re: Optimal query for related names in onetomany or manytomany using Django Queryset

2018-02-02 Thread Andy
not that i know of Am Freitag, 2. Februar 2018 15:28:26 UTC+1 schrieb Web Architect: > > Hi Andy, > > Thanks for your response. I was pondering on option a before posting this > query thinking there could be better ways in django/SQL to handle this. But > now I

Re: Optimal query for related names in onetomany or manytomany using Django Queryset

2018-02-02 Thread Andy
a) Maybe its an option to put the foreign key to the other model? This way you dont need to make a join to find out if there is a relation. b) Save the existing ralation status to model A c) cache the A.objects.filter(bs__isnull=False) query But apart from that i fear you cannot do much more,

Re: Customizable Invoice

2018-02-02 Thread Andy
Well since your answer is no, you should take you time and learn Python/Dajngo before asking anyone in here to basically write that invoice app for you. :) Basically Django can do what you are asking for, but i'd recommend you to use it only as a backend for this highly UI focused problem.

Re: Customizable Invoice

2018-02-02 Thread Andy
Do you have any idea in any programming language you know how to do what you are asking for? -- 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

Re: Simple table construct?

2018-02-01 Thread Andy
You could use Djangos geo features to calculate distances. https://docs.djangoproject.com/en/2.0/ref/contrib/gis/ Am Mittwoch, 31. Januar 2018 15:40:41 UTC+1 schrieb MikeKJ: > > This should be real simple but it has me scratching where to start > > Distance/Time between 2 place like > > Distance

Travis Problem

2018-02-01 Thread Andy
Hi, im trying to convince Travis to test my app: https://github.com/kakulukia/django-secrets But its failing for all python3 versions. Because my system python 3 is 3.6.4 i just installed pyenv, created a 3.6.3 (latest python 3.6 at Travis) virtualenv and ran the tests. On my local system they

Re: django-vue

2018-02-01 Thread Andy
I made a project template that is already configured to use vue and a lot more. https://github.com/kakulukia/django-default-project Am Mittwoch, 31. Januar 2018 12:55:48 UTC+1 schrieb Mohammad ariyan bin layek: > > Hii guys is there any good resouce to integrate django with vue ? > -- You

Re: querying multiselectcheckbox

2018-02-01 Thread Andy
Once you fixed the typo in your model name its Participants.objects.filter(track_events__in=['100M', '200M']).values_list('Full_name') And you should use single case for model name (Participant) and lower case for full_name as you did with the other attributes. -- You received this message

Re: django 2 under python 2

2018-01-29 Thread Andy
its fixed now .. you can savely install django under python2 again :) Am Donnerstag, 25. Januar 2018 22:39:43 UTC+1 schrieb Andy: > > Hi! > > pip inside a python2 virtualenv will try to install django 2, which aint > working and will fail. > I wonder why this is happening be

Re: how do I make django search for male or female without needing to specify an age?

2018-01-28 Thread Andy
Why do you make a POST request for displaying a list? Use GET parameters like its done for admin filters. And for building an API that returns JSON Data use DjangoRestFramework and you will just need to define your serializer fields .. the rest is taken care of for you. That code above looks

Re: Get request, has PK, how do I access the PK data with in the model

2018-01-26 Thread Andy
Travis have a look the very cool and complete django tutorial which explaining how you query models in part2. Once you have create the admin views, watch closely at how the list filters work to get an idea of what you have to do. :) -- You received this message because you are subscribed to

Re: django 2 under python 2

2018-01-26 Thread Andy
okay after digging a little bit more yesterday i found out why this is happening .. https://code.djangoproject.com/ticket/28878 its fixed in 2.0.1, but maybe they will be able to reupload 2.0 Just to be clear: i know that django 2 aint working under python2, but its a pain to setup cross

Re: Django Rest Framework: Get Data from an external apis

2018-01-25 Thread Andy
you dont have to define any route when getting data from an external api, just use requests.get('https://api.test.com/consumers') to get your data -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: unable to save object Django (2.0)

2018-01-25 Thread Andy
what is the actual error message? Am Dienstag, 23. Januar 2018 21:10:00 UTC+1 schrieb harsh sharma: > > i am trying to save the basic information about a person > i have created a model form for it but i am unable to save the object > (unable to update the database) > > here is my views file >

django 2 under python 2

2018-01-25 Thread Andy
Hi! pip inside a python2 virtualenv will try to install django 2, which aint working and will fail. I wonder why this is happening because for instance if i install ipython in that same virtualenv pip wont try to install version 6.x because its marked as python3 only. It seems django 2 is

weird manager bug

2018-01-25 Thread Andy
Hi, i have created a module for django that basically gives me shadow db with all deleted data and hides all that from django by the use of a custom (not deleted) data manager. So far so good - this works really well, but lately i finally wrote some tests for this project and discovered a

Filefield uploads in django admin

2017-06-06 Thread Andy Cheesman
starting points, I would happily provide further useful information Yours Andy -- 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: Interfacing Django Project with Python Script

2015-07-18 Thread Andy Shapiro
For a standalone script (and django 1.7+), you'll need to add this at the top of your script: import django django.setup() https://docs.djangoproject.com/en/1.8/ref/applications/#django.setup https://docs.djangoproject.com/en/1.8/intro/tutorial01/#playing-with-the-api On Friday, July 17,

Re: Bug? Infinite migrations with empty help_text and ugettext_lazy

2015-06-04 Thread Andy Gimblett
.djangoproject.com/newticket and fixed. > > ... > > Thanks for finding and reporting the bug! Thanks for the clear reply! I'll raise a ticket on Tuesday (which will be my next opportunity to do so). Best, -Andy -- You received this message because you are subscribed to the Googl

Bug? Infinite migrations with empty help_text and ugettext_lazy

2015-06-04 Thread Andy Gimblett
bit on any 1.7.x versions I've tried. I haven't tried any development versions. Can anyone provide any insight? Is this worth raising a bug over? Thanks! -Andy -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Two Django projects with common models and business logic

2014-12-24 Thread andy
Thank you. Since it's only me that'd be using the apps do can I bypass the 'deploy using pip' thing and somehow directly use it in my other projects? /andy On Wednesday, December 24, 2014 12:41:25 AM UTC+5:30, Javier Guerra wrote: > > On Tue, Dec 23, 2014 at 1:22 PM, andy <andy...@

Two Django projects with common models and business logic

2014-12-23 Thread andy
and business logic. Thanks in advance. /andy P.S. This is my first post. So pardon me for breaking any forum etiquette. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

How do I migrate models from one app to another with django 1.7 migrations?

2014-11-04 Thread Andy Kish
ion. 4. Get rid of the Meta.db_table entries so my moved models just use the normal table names they're supposed to. Seems like it should get me to where I want to go. Am I smoking crack? Is this really that hard? Thanks! Andy. -- You received this message because you are subscribed to the

Re: Django Tutorial #5 Testing: return Poll.objects.filter( SyntaxError: 'return' outside function

2014-09-16 Thread Andy McKay
You've got a syntax error in your code, likely wherever you have "return Poll.objects.filter(" in your code. "Outside a function" likely means that you have not correctly indented your code, for example if your return has no indentation. Whitespace in Python is significant and is part of the

Re: Django migrations and DateTimeField defaults

2014-08-13 Thread Andy Roxby
Thanks, that's what I did. In my humble opinion, the ValueError should be removed and the timezone serialized in the form UTC offset (eg: -0400). On Tuesday, August 12, 2014 9:43:11 PM UTC-4, Collin Anderson wrote: > > Wow. That almost sounds like a bug, though you can however use a callable.

Django migrations and DateTimeField defaults

2014-08-12 Thread Andy Roxby
Hello all, I'm new to this list so please let me know I'm overlooking any sort of e tiquette. I'm having problem trying to use a default value for a DateTimeField. When I specify a default value WITH a timezone I receive the following error during './manage.py makemigrations' ValueError:

Re: What are the active Django e-commerce frameworks right now (2014)?

2014-04-28 Thread Andy Robinson
I second the recommendation for Stripe. I have no need for shopping carts but suffered for years dealing with credit card payments for license renewals. Many solutions were running into problems with foreign banks blocking payments (which the payment solution can't do anything about),

ANN: ReportLab PLUS 3.1 - rapid PDF creation for Django sites

2014-04-28 Thread Andy Robinson
uild service. Find out more... <http://www.reportlab.com/reportlabplus/> Andy Robinson CEO / Chief Architect ReportLab -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

Re: memcached and redis

2014-03-01 Thread Andy McKay
t; Memcache works just fine as a session backend: https://docs.djangoproject.com/en/dev/topics/http/sessions/#using-cached-sessions Andy -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

Vancouver Python Day - Tickets on sale Friday

2013-10-23 Thread Andy McKay
We're pleased to announce that tickets for Vancouver Python Day will be released on Friday, October 25 at 10AM. You can purchase tickets at http://vanpyday.eventbrite.com/ Space is extremely limited, so we advise buying your tickets as early as possible if you plan to attend. Thanks to our

Django Software Foundation minutes

2013-10-14 Thread Andy McKay
Just wanted to make people aware that each month the board of the Django Software Foundation meets. The minutes of each meeting are published here: https://www.djangoproject.com/foundation/records/ If there's anything you'd like discussed at the next board meeting, please contact us at:

Vancouver Python Day - Talk Proposal Deadline

2013-10-14 Thread Andy McKay
soon regarding ticket availability. In the meantime, mark your calendar! Andy -- 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

Vancouver Python Day

2013-09-30 Thread Andy McKay
The Vancouver Python User Group and the Vancouver Django Meetup Group are pleased to announce: Vancouver Python Day Saturday, November 16, 2013 SFU Harbour Centre Part of Vancouver Developer Week 2013, Vancouver Python Day is a one-day mini conference celebrating the Python Developer Community

Re: Passing variables to css file in django

2013-08-25 Thread Andy McKay
Any string can be rendered as a template. This is covered pretty well in the docs: https://docs.djangoproject.com/en/dev/ref/templates/api/ For example: >>> from django.template import Context, Template >>> t = Template("body { background-color: {{ bgcolor }} }") >>> c = Context({'bgcolor':

Re: Friendship model

2013-08-08 Thread Andy McKay
On Thu, Aug 8, 2013 at 12:41 PM, Robin Lery wrote: > How do i create a Friendship model? Please guide me. > You would need to provide more detail to get much help. The tutorial covers how to make models: https://docs.djangoproject.com/en/dev/intro/tutorial01/ -- You

  1   2   3   4   5   6   7   >