GeoDjango GIS Model Fieldset Usage

2018-01-10 Thread Shazia Nusrat
Hi, I need quick help about using the fields in the following model: class Size(models.Model): azimuth = models.CharField(max_length=200, blank=True, null=True) tilt = models.CharField(max_length=200, blank=True, null=True) boundary_coordinates = models.CharField(max_length=200, blank=Tr

Re: GeoDjango GIS Model Fieldset Usage

2018-01-10 Thread Shazia Nusrat
l problem? > > 11.1.2018 3.04 "Shazia Nusrat" kirjoitti: > >> Hi, >> >> I need quick help about using the fields in the following model: >> >> class Size(models.Model): >>azimuth = models.CharField(max_length=200, blank=True, null=True) >

GIS Address Form Creation

2018-02-09 Thread Shazia Nusrat
Hi, I am trying to create a simple location form from GIS models and following GeoDjango tutorial and after completing the tutorial I am still confused about how to go for it. What I need is that users come in on my page and they select their location from the map and it should save in the datab

Saving Json data from javascript

2018-02-12 Thread Shazia Nusrat
Hi, Below is the code for Javascript from Django template Google Maps API. I need to be able to save this in my Django models with JSON response. I am new user so an example will be really a great help. Precisely I need to be able to save coordinates like latitude and longitude and then convert i

Re: Saving Json data from javascript

2018-02-13 Thread Shazia Nusrat
tienne > > Le 2018-02-12 à 18:04, Shazia Nusrat a écrit : > > Hi, > > Below is the code for Javascript from Django template Google Maps API. I > need to be able to save this in my Django models with JSON response. I am > new user so an example will be really a great help. >

How to populate DB from PDF extracted data

2018-03-09 Thread Shazia Nusrat
Hi, I am trying to work around with PDF's where user uploads PDF in image or filefield and then way to extract it for Django and finally update DB table based on it. Following are the models: class StudentFee(models.Model): class_name = models.CharField(choices=CLASSES, max_lenght=200)

Non Admin Dashboard/Shop Login for Suppliers

2016-08-20 Thread Shazia Nusrat
Hi, I am using Django-registration for registration process in my django project. Now I need to add a shop login for resellers. Can some one provide me the process to add Shop-Dashboard in NLP like in non coding format just to give me idea how to go for it. Do I need to build form from my Shop mo

Error: int() argument must be a string or a number, not 'SimpleLazyObject'

2016-08-31 Thread Shazia Nusrat
Hi I am having this error while I am trying to delete session and cart by IDs after order fulfillment. carts/views.py class CheckoutFinalView(CartOrderMixin, View): > def post(self, request, *args, **kwargs): > order = self.get_order() > order_id = order.id > print ord

Re: Error: int() argument must be a string or a number, not 'SimpleLazyObject'

2016-08-31 Thread Shazia Nusrat
nt actually return any sort of > http response. > > On Wed, Aug 31, 2016 at 7:27 AM, Shazia Nusrat > wrote: > >> Hi I am having this error while I am trying to delete session and cart by >> IDs after order fulfillment. >> >> carts/views.py >> >>

ForeignKey filters are not working

2016-09-25 Thread Shazia Nusrat
Hi, Can someone please help me with the question in link. I've been trying to get it done from hours now please assist to get my processed orders displayed on dashboard. Regards, Shazia -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Can someone help me to fix ForeignKey related filter issues

2016-09-25 Thread Shazia Nusrat
Hi, Following is the link and kindly assist as I've been trying to do this for hours now. http://stackoverflow.com/questions/39685833/django-filter-with-foreignkey-not-working?noredirect=1#comment66671635_39685833 Regards, Shazia -- You received this message because you are subscribed to the G

[Kind Attention Requested] Django Zinnia blog error for entries

2016-09-27 Thread Shazia Nusrat
I am trying to fix issue with Zinnia blog application and its popping up error related to aggregator and entries. Following is the code if someone have a suggestion: def get_authors(context, template='zinnia/tags/authors.html'): """ Return the published authors. """ entries = Entry

Re: [Kind Attention Requested] Django Zinnia blog error for entries

2016-09-27 Thread Shazia Nusrat
admin', > 'django.contrib.sites', > 'django.contrib.sessions', > 'django.contrib.messages', > 'django.contrib.staticfiles', > 'django.contrib.contenttypes', > 'mptt', > 'tagging', > 'zinnia',

Multiple Types of Account with Abstract User

2016-10-23 Thread Shazia Nusrat
Hi, I am trying to create multiple types of users in my django e-commerce project by extending built-in Django user model but I am having issue. Would appreciate if someone can guide me to right direction. Following is the code in my "accounts" app. from __future__ import unicode_literals from dj

Re: Multiple Types of Account with Abstract User

2016-10-23 Thread Shazia Nusrat
erwise you'll have to remove your existing database > and run migrations from start. > > Asad Jibran Ahmed > http://blog.asadjb.com > > On Mon, Oct 24, 2016 at 4:37 AM, Shazia Nusrat > wrote: > >> Hi, >> I am trying to create multiple types of users in my d

Re: Multiple Types of Account with Abstract User

2016-10-23 Thread Shazia Nusrat
t you're doing with your > UserDetails models. > > Hope that helps. > > Asad Jibran Ahmed > http://blog.asadjb.com > > On Mon, Oct 24, 2016 at 7:18 AM, Shazia Nusrat > wrote: > >> I've deleted DB and migrations I had previously. >> But still can&#

Need help to catch "cart_id" based on session.

2016-11-05 Thread Shazia Nusrat
Hi, I am using doorsale repo for building ecommerce site due to it's simplicity but I am stuck at the error while trying to catch cart session ID. The repo link is: https://github.com/mysteryjeans/doorsale Error traceback is below: Request Method: POST Request URL: http://localhost:8000/sales

Multiple roles Django 2

2019-07-06 Thread Shazia Nusrat
Hi All, I am having hard time to get multiple roles for users in a project and I am having errors. I've added related_name but still getting error. Can please tell me how to fix this? *** from django.db import models from django.contrib.auth.models import Ab

Django Forms HorizontalRadioSelect Renderer not working.

2017-07-25 Thread Shazia Nusrat
Hi, I need to select form values horizontally but couldn't get it work. Following is the code: class HorizontalRadioRenderer(forms.RadioSelect.renderer): def render(self): return mark_safe(u'\n'.join([u'%s\n' % w for w in self])) class ResponseForm(models.ModelForm): class Meta:

Re: Django Forms HorizontalRadioSelect Renderer not working.

2017-07-25 Thread Shazia Nusrat
From 1.11 the widgets changed to a > template mechanism. > > https://docs.djangoproject.com/en/1.11/ref/forms/widgets/#radioselect > > Maybe this can help: > https://stackoverflow.com/questions/44187640/django-1- > 11-horizontal-choice-field > > El dimarts, 25 juliol de 2017

Re: Django Forms HorizontalRadioSelect Renderer not working.

2017-07-26 Thread Shazia Nusrat
;s the CSS: > > https://github.com/django/django/blob/d17eaa868cd6911197dcd8b096c4f0 > 418c47007e/django/contrib/admin/static/admin/css/forms.css#L42-L66 > > On Tuesday, July 25, 2017 at 8:10:58 AM UTC-4, Shazia Nusrat wrote: >> >> I am using Djnago 1.11.1. I've tried te

Dynamic Model ID cannot be called

2017-07-26 Thread Shazia Nusrat
Hi, I have a simple model like below: class Artists(models.Model): name = models.CharField(max_length=200) description = models.TextField() def __unicode__(self): return self.name I am trying to call it in my view like below: def artistdetail(request, id):

Re: Dynamic Model ID cannot be called

2017-07-26 Thread Shazia Nusrat
' function. > > > M > > On Wed, Jul 26, 2017 at 4:50 AM, Shazia Nusrat > wrote: > >> Hi, >> >> I have a simple model like below: >> >> class Artists(models.Model): >>name = models.CharField(max_length=200) >>desc

Creating Forms from frontend like Google Survey Forms

2017-07-26 Thread Shazia Nusrat
Hi, I need to develop a view that can help end-users create forms from the frontend like SurveyMonkey or Google Survey Forms. Basically I need to get admin forms at frontend and let the user's create forms on given set of fields. Can anyone point me to right direction please? Thanks. Shazia --

Create ModelForms to create ModelForms

2017-08-01 Thread Shazia Nusrat
I need to create a frontend app where I can use forms to create forms such as Google Surveys or Survey Monkey kind of application. Can someone point me to any reusable app or something similar or someone can guide me that would be a great help. Regards, Shazia -- You received this message becau

Video Chat with Django

2017-09-29 Thread Shazia Nusrat
Hi, I am trying to collect some information about implementing Video Chat in a Django project. Is there some working repo where WebRTC is implemented for video chat using Django? Some link or web resource would be a great help. Regards, Shazia -- You received this message because you are subsc

Re: Django - CreateView not saving form with nested formset

2020-03-03 Thread Shazia Nusrat
t; else: >> print('There was an error') >> for err in education.errors: >> print(err) >> >> >> On Sunday, February 23, 2020 at 2:01:37 AM UTC-5, Shazia Nusrat wrote: >>> >>> Hi, >>> >>> C

Subclassing Django Views Issue

2018-12-10 Thread Shazia Nusrat
Can someone help me with subclassing django-views as I couldn't understand the pattern to work with. Following is the link to see the code. https://github.com/AndrewIngram/django-extra-views/issues/187 Regards, Shazia -- You received this message because you are subscribed to the Google Groups

Itterate with Include Tag

2018-12-29 Thread Shazia Nusrat
Hi Guys, I have a form created from foreignkey model. I have used "include" with jinja for displaying my fields. But I don't know how to iterate through and include tag. % Below is the code and I would appreciate if someone can help me to iterate through following template code. {% for field in f

Mobile social registration for Django Backend endpointe

2020-12-23 Thread Shazia Nusrat
Hi, I am using Django for my web app and DRF to expose my API for mobile applications. I need users to sign in using social accounts at mobile side and need to authenticate via Django API. I've used couple of libraries but couldn't understand the workflow for 1. https://github.com/RealmTeam/d

Re: How can I host my django project on my pc for someone to see it outside my WIFI network

2020-12-23 Thread Shazia Nusrat
Ngrok will help you publish your site for development if you need to show your work remotely. Remember you need to run two terminals on terminal 1 you will run your project as you normally do and on other terminal you need to run ngrok. It will provide you with couple of URLs one for http and a

Re: How can I host my django project on my pc for someone to see it outside my WIFI network

2020-12-23 Thread Shazia Nusrat
You also need to add your url provided by Ngrok to your Django settings.py "ALLOWED_HOSTS". Only then it will present your site on that URL. On Thursday, December 24, 2020 at 4:27:00 AM UTC+5 Shazia Nusrat wrote: > Ngrok will help you publish your site for development if you

Pipenv in Production

2021-01-12 Thread Shazia Nusrat
Hi, I can deploy sites using virtualenv but having trouble with pipenv using Gunicorn + Nginx. Can someone provide me some guide or reference for deploying sites in production using Pipenv? Regards, Shazia -- You received this message because you are subscribed to the Google Groups "Django

Updating FK values for Stock Application

2021-06-07 Thread Shazia Nusrat
Hi, I am developing a stock management application and I am stuck at simple use case. Following is my model for Stock: class LiquidChemicalML(Stock): supplier_name = models.ManyToManyField(Supplier) quantity_values = ( ('Ounces', 'Ounces'), ('Millilitters', 'Millilitters'), ('Pounds', 'Pounds')

Re: Updating FK values for Stock Application

2021-06-07 Thread Shazia Nusrat
ay, June 7, 2021 at 5:32:12 PM UTC+5 frds...@gmail.com wrote: > If you want to have multiple chemicals in a single order then you'll have > to use ManyToManyField instead of ForeignKey field. > > On Mon, Jun 7, 2021 at 5:08 PM Shazia Nusrat wrote: > >> Hi, >> I am

Multiple user roles with permissions

2019-09-25 Thread Shazia Nusrat
Hi, I need help to understand implementation of multiple user roles and permissions on views/templates/objects. If someone can point me to really nice project at GitHub I will be really thankful. I couldn't find one so far. Regards, Shazia -- You received this message because you are subscribed

Re: Multiple user roles with permissions

2019-09-25 Thread Shazia Nusrat
I just needed a working example of added permissions system in a project I can run. Django-rules is good and I've tried it in my test-project. I was hoping a project with bunch of user types and assigned permissions hardcoded. I know I can do things from default admin dashboard. Regards, Shazia

Re: Multiple user roles with permissions

2019-09-26 Thread Shazia Nusrat
So kind of you George. It worked for me in examples and thanks for adding Python code example search engine. You really made my life easier. :-) Regards, Shazia On Thu, Sep 26, 2019 at 4:39 AM George Tantiras wrote: > Repositories using django-rules: > > > https://github.com/dfunckt/django-rul

Barcode 128Code generation with Django

2019-10-08 Thread Shazia Nusrat
Hi I am looking for some help to generate a barcode for my practice project and I need commercial code128 generation help. I need to add my customer ID and product ID in the barcode. Any help would be appreciated. Regards, Shazia -- You received this message because you are subscribed to the G

FK forms in a Single CreateView

2019-10-10 Thread Shazia Nusrat
Hi I have a situation to manage multiple models with FK for a single CreateView. Can someone give me a solution for the below. class Client(models.Model): name = models.CharField(max_length=100) email = models.EmailField() phone = models.CharField(max_length=100) business = mo

Re: FK forms in a Single CreateView

2019-10-10 Thread Shazia Nusrat
ForeignKey. On Thu, Oct 10, 2019 at 9:18 AM Mohammad yunus wrote: > What is mean FK Shaziya > > On Thu, 10 Oct 2019, 9:19 pm Shazia Nusrat, wrote: > >> Hi I have a situation to manage multiple models with FK for a single >> CreateView. >> >> Can some

Re: FK forms in a Single CreateView

2019-10-10 Thread Shazia Nusrat
Again I need to use multiple models in one CreateView. I couldn't make it work by just importing and using it. @Suraj can you share an example. Regards, Shazia On Thu, Oct 10, 2019 at 3:27 PM Suraj Thapa FC wrote: > Just import and use it.. > > On Thu, 10 Oct, 2019, 10:51 PM

Re: FK forms in a Single CreateView

2019-10-10 Thread Shazia Nusrat
cts.create() > model2.objects.create() > > On Fri, 11 Oct, 2019, 4:33 AM Shazia Nusrat, > wrote: > >> Again I need to use multiple models in one CreateView. I couldn't make it >> work by just importing and using it. >> @Suraj can you share an example. >&g

Django - CreateView not saving form with nested formset

2020-02-22 Thread Shazia Nusrat
Hi, Can someone help to answer the question in link? Also I've been trying to get CreateView working with 5 inline formsets but couldn't make it work. Will really appreciate your help if someone can help me with working example. Question: https://stackoverflow.com/questions/60354976/django-creat