Re: New to Django to select between 3.0 and 2.2

2020-03-13 Thread Andréas Kühne
Hi Mrinal,

Django is a very mature framework - new releases rarely have any issues
that hinder them from being used in production. For a new project you
should definitely go for 3.0 - you will start with the correct structure
for the new async features and you will also not have any issues with being
able to release. We have a production environment running on 3.0.4
currently (and upgrading the other project to 3.0.4).

Also - you will probably not be finished with your project before all the
minor issues (mainly security related) will be fixed in the 3.0 branch :)

Regards,

Andréas


Den tors 12 mars 2020 kl 10:55 skrev Mrinal Kamboj :

> Hello,
>
> I have just started the Python development, I am very new to the Python
> and have to select between Django versions 3.0 and 2.2, where 2.2 is LTS
> and 3.0 is current main stream.
>
> Does the current 3.0 Packages can still have the compatibility issues and
> would take some time to be stable so it would be better to choose 2.2 or is
> the 3.0 ready for the production development. and that  should be the
> choice.
>
> Kindly help with the relevant information and links.
>
> Thanks,
>
> Mrinal
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0d89a17b-35b8-43a3-b592-35180320bff3%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCfFSZCCAmRq1P0gWCZh8td%3DDKxmicKHvhkRrYaXsyP_3Q%40mail.gmail.com.


Re: How to get children in Django-CMS

2020-03-13 Thread WrapTheCode
I found a solution. Maybe someone else will get help.

{% for child in request.current_page.get_child_pages %}
> {{ child.get_menu_title }}
> {% page_attribute "meta_description" child %}
> {% endfor %}
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/386e25b3-47b5-4be9-8ac5-0a35e36edfc6%40googlegroups.com.


Re: New to Django to select between 3.0 and 2.2

2020-03-13 Thread אורי
Hi Mrinal,

It depends on the packages you are using (dependencies). Which Django
version do they support? If all your dependencies support Django 3.0, go
for it. Otherwise, go for 2.2. I'm personally still using Django 2.1 for
Speedy Net, but I'm waiting for PR #12332 to be released to production,
which is expected next month. So in general, the selection of which Django
version you use depends on your dependencies.

אורי
u...@speedy.net


On Thu, Mar 12, 2020 at 11:54 AM Mrinal Kamboj  wrote:

> Hello,
>
> I have just started the Python development, I am very new to the Python
> and have to select between Django versions 3.0 and 2.2, where 2.2 is LTS
> and 3.0 is current main stream.
>
> Does the current 3.0 Packages can still have the compatibility issues and
> would take some time to be stable so it would be better to choose 2.2 or is
> the 3.0 ready for the production development. and that  should be the
> choice.
>
> Kindly help with the relevant information and links.
>
> Thanks,
>
> Mrinal
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0d89a17b-35b8-43a3-b592-35180320bff3%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABD5YeHuZdTkrRmUAGPVQZaYZNL_m37Onw%2B%3D780-RowZSji%2BSQ%40mail.gmail.com.


Count the number of emails sent everyday

2020-03-13 Thread Santhosh sridhar
Hi,
I am working on django and I trigger emails to multiple email IDs in 
different scenarios, Is there a way to get the count of emails sent 
everyday instead of storing it in tables.

Regards,
Santhosh

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b2ef2992-ed9c-45f5-86ad-06e0feb76085%40googlegroups.com.


I need help with getting the number of pages a particular user viewed

2020-03-13 Thread Awverosuo Trust
Hi guys 
Please I need help..  
I want to create a website (blog) where
* Users can upload or make post 
*Log in and log out
But I have one problem 
* I want to have a field in the data base called (point)  with initial value of 
Zero(0),  and a button in each posts (page)  , when the user clicks the button, 
I want  the point in the user data base to increase by two(+2)... 
* I want to have it displayed in the users profile 

Who can be of help please?
I would really appreciate if you guys can be of help to me...  I will welcome 
video tutorials too as far it can be of help please

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d2751466-72a1-4eed-b63e-b5bbd83f3d7c%40googlegroups.com.


Multiple user registeration with different fields and authentication

2020-03-13 Thread Kuldeep Sharma
Hi all,
New to django, 
Can someone please tell me how to let multiple user register to my app with 
different field and authentication.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/10e7cf6b-ad34-4829-9dc9-b66aba4526e1%40googlegroups.com.


Re: unable to read POST parameters sent by payment gateway

2020-03-13 Thread sercan t.
Don't send POST to http://127.0.0.1:8000/cashfreeresponse,
Check your views and urls.py or redirect mechanism. Try to send like this 
==> http://127.0.0.1:8000/cashfreeresponse/

I simulate on my machine this. I got error like you when send POST request 
without '/' at the end.


9 Mart 2020 Pazartesi 23:23:24 UTC+3 tarihinde Sreekanth yazdı:
>
> I am unable to read POST parameters sent by payment gateway after payment 
> was processed. Payment gateway redirects to returnUrl (I pass this to 
> payment gateway before payment was processed) with some parameters by POST 
> request.
>
> In url.py
>
> path('cashfreeresponse/',views.cashfree_response, name='cashfree_response'),
>
> in views.py
>
> @csrf_exempt@login_requireddef cashfree_response(request):
> print(request.method)
> if request.method == "POST":
> print('inside post method')
> print(request.POST.get('cf_subReferenceId'))
> if request.method == "GET":
> print('inside get method')
> print(request.GET.get('cf_subReferenceId'))
>
> print(request.method) is showing as GET but it was supposed be POST method 
> also print(request.GET.get('cf_subReferenceId')) and 
> print(request.POST.get('cf_subReferenceId')) are showing as None.
>
> But it looks like payment gateway sending parameters as POST method. When 
> I pass returnUrl as http://127.0.0.1:8000/cashfreeresponse instead of 
> http://127.0.0.1:8000/cashfreeresponse/ ('/' is missing in the first one) 
> then I am getting error as
>
> You called this URL via POST, but the URL doesn't end in a slash and you 
> have APPEND_SLASH set. Django can't redirect to the slash URL while 
> maintaining POST data. Change your form to point to 
> 127.0.0.1:8000/cashfreeresponse/ (note the trailing slash), or set 
> APPEND_SLASH=False in your Django settings.
>
> but I see in my google chrome page that payment gateway sending parameters 
> with POST request. Below image shows parameters sent by payment gateway by 
> POST request
>
> [image: enter image description here] 
> 
>
> If I change urls.py to
>
> path('cashfreeresponse',views.cashfree_response, name='cashfree_response'),
>
> in settings.py to
>
> APPEND_SLASH = False
>
> and returnUrl to http://127.0.0.1:8000/cashfreeresponse then I am not 
> getting any error but still not receiving any parameters. How do I read 
> those parameters sent by payment gateway by POST request? Here 
>  is the 
> documentation for payment gateway.
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/05c3a1a5-306d-41d9-9f3e-c1c4a0bada59%40googlegroups.com.


I need a mentor please

2020-03-13 Thread Awverosuo Trust
I need a mentor,  please 

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0cc4ba09-557b-4038-9ada-a0338f3c6012%40googlegroups.com.


Re: How to resolve account access permission on SendGrid.

2020-03-13 Thread avinash prajapati
okay,
I have solved this problem.
thanks for your response.

On Thu, 12 Mar 2020 at 12:05, Naveen Arora 
wrote:

> wrong portal to ask this question :)
>
>
> On Wednesday, 11 March 2020 00:09:31 UTC+5:30, avinash prajapati wrote:
>>
>> I am recently created an account on SendGrid but after first login it is
>> showing
>> error that accounts access permission is not authonaticate.
>> Help to resolve this issue..
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/601e6dc0-48d9-4f89-89e1-7498a1a96255%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADnxbgUTQB6DUg4T7TnbPWQk4JQ923ZovMAJaM5bm7Szn_ezpQ%40mail.gmail.com.


JavaScript linking

2020-03-13 Thread Daniel Chiemelu
Please how can I link JavaScript to my project when I stored my JavaScript
in my static folder/JS subdirectory

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABukqF5vJdxtSXwwhob3%3DjbjLVPNyWmhBteNAKkMKj427curdw%40mail.gmail.com.


Re: JavaScript linking

2020-03-13 Thread Shishir Jha
One way to do that would be to use bundler like webpack. Do whatever you
want to do on frontend and then convert it into static assets using bundler
and then place it as an app in django.
I assume you were talking about linking js with django as this is the group
for django.

Two such bundlers you can check are webpack(more configuration)
And parcel(simple and less configuration)

But everytime if you make some changes on frontend side you will have to
run build command to convert files to static assets.


On Fri, 13 Mar 2020, 5:38 pm Daniel Chiemelu, <
chiemeluchukwuemeka...@gmail.com> wrote:

> Please how can I link JavaScript to my project when I stored my JavaScript
> in my static folder/JS subdirectory
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABukqF5vJdxtSXwwhob3%3DjbjLVPNyWmhBteNAKkMKj427curdw%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BC7wFRrpsxSi0v_DdqaDTHuZwaHiAYc1DWRz%3Dni-fU6jmGCNA%40mail.gmail.com.


Re: I need a mentor please

2020-03-13 Thread Ousseynou Diop
Hello how i can help you ?
You can reach out to me here @xarala221 https://ousseynoudiop.com

Le vendredi 13 mars 2020 11:30:58 UTC, Awverosuo Trust a écrit :
>
> I need a mentor,  please 

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/11341432-0ad2-4059-aedc-dd7cf631753a%40googlegroups.com.


Re: Mentor needed

2020-03-13 Thread Ousseynou Diop
Hello how i can help you ?
You can reach out to me here @xarala221 https://ousseynoudiop.com

Le mercredi 11 mars 2020 10:09:20 UTC, ola neat a écrit :
>
> Hey guyz I'm applying  for GSOC {django} & i pretty much need help 
> (mentors),   
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a26cf785-c488-47fb-ab43-033a1a88a4ce%40googlegroups.com.


Display multiple photos to the same post

2020-03-13 Thread Macheciau
MODELS:

class Activitati(models.Model):
data_publicarii = models.DateField(default = "-LL-ZZ")
titlu = models.TextField(max_length = 50, blank = False)
text = models.TextField(blank = False)
def get_absolute_url(self):
return reverse('activitati', kwargs={'pk':self.pk})

class Images(models.Model):
post = models.ForeignKey(Activitati, on_delete = models.CASCADE, default = 
None)
image = models.ImageField(upload_to ='images/', blank = True, null = True)

def __str__ (self):
return self.post.titlu + 'Image'


VIEWS:

def activitati_upload(request):
ImageFormset = modelformset_factory(Images, form = ImageForm, extra = 10)
if request.method == 'POST':
activitateform =ActivitatiForm(request.POST)
formset = ImageFormset (request.POST or None, request.FILES or None, 
queryset = Images.objects.none())
if activitateform.is_valid() and formset.is_valid():
activitate_form = activitateform.save(commit=False)
activitate_form.save()
for form in formset.cleaned_data:
if form: 
image = form['image']
photo = Images(post = activitate_form, image = image )
photo.save()
return redirect('activitati')
else:
activitateform = ActivitatiForm()
formset = ImageFormset(queryset = Images.objects.none())
return render(request, 'activitati_upload.html', {
'form':activitateform,
'formset':formset
})

def activitati_list(request):
activitati = Activitati.objects.all()
post = Images.objects.all()
ordering = ['-data_publicarii']
return render(request, 'activitati_list.html', {'activitati':activitati,
'post':post})


class ActivitatiDeleteView(LoginRequiredMixin, DeleteView):
model = Activitati
success_url = '/activitati/list'

TEMPLATE:

{%for p in post.images_set.all%} 

  

{%endfor%}


Why doesnt it work ? 

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/707ef728-0c0c-410d-a211-08e01699cd43%40googlegroups.com.


Re: AttributeError: 'NoneType' object has no attribute 'app_name'

2020-03-13 Thread Sencer Hamarat
Thank you for your suggestion. And sorry fro delayed answer.

My hunch is saying same thing but I want to be sure about it.

Kind Regards,
Sencer Hamarat

3 Mart 2020 Salı 12:24:34 UTC+3 tarihinde Naveen Arora yazdı:
>
> Hi, 
>
> Can't the error be resolved ? Still, if error has to occur then you can 
> put conditions instead of try blocks for better functioning.
>
> Regards
> Naveen Arora
>
>
> On Monday, 2 March 2020 18:25:15 UTC+5:30, Sencer Hamarat wrote:
>>
>> Hello, 
>>
>> The project I'm working on has it's custom template context_processor.
>> And when unavailable URL request arrives to Django (Eg. "/wp-login.php"), 
>> the context_processor is throwing AttributeError.
>>
>> Which way should I use to prevent from context processor from throwing 
>> errors?
>> Is it ok to wrapping return with try block and returning empty dictionary 
>> if AttributeError raised?
>>
>> def resolver_context_processor(request):
>> return {
>> 'app_name': request.resolver_match.app_name,
>> 'namespace': request.resolver_match.namespace,
>> 'url_name': request.resolver_match.url_name
>> }
>>
>>
>>
>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4c876117-f16b-4603-8d7b-d3609420093a%40googlegroups.com.


Re: Count the number of emails sent everyday

2020-03-13 Thread Suraj Thapa FC
You can use some 3rd party apis

On Fri, 13 Mar 2020, 4:42 pm Santhosh sridhar, 
wrote:

> Hi,
> I am working on django and I trigger emails to multiple email IDs in
> different scenarios, Is there a way to get the count of emails sent
> everyday instead of storing it in tables.
>
> Regards,
> Santhosh
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b2ef2992-ed9c-45f5-86ad-06e0feb76085%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPjsHcExpo-%2BHBweDqEhszb0ZEqfeVvt7B70TzdmNVkTwhChyQ%40mail.gmail.com.


Can Length method of django.db.models.functions applicable to BigIntegerField?

2020-03-13 Thread Sencer Hamarat
I need to filter data by it's value length of a field. 
I can do it in a for loop, but I'm curious about if the Length method can 
be applicable to any type of field besides CharField

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f717eeb7-7ba5-43e9-bdb3-fac86edce3d3%40googlegroups.com.


Re: Count the number of emails sent everyday

2020-03-13 Thread Santhosh Sridharan
Is there any third party apis that you suggest please?


On Fri, 13 Mar, 2020, 8:07 PM Suraj Thapa FC, 
wrote:

> You can use some 3rd party apis
>
> On Fri, 13 Mar 2020, 4:42 pm Santhosh sridhar, 
> wrote:
>
>> Hi,
>> I am working on django and I trigger emails to multiple email IDs in
>> different scenarios, Is there a way to get the count of emails sent
>> everyday instead of storing it in tables.
>>
>> Regards,
>> Santhosh
>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/b2ef2992-ed9c-45f5-86ad-06e0feb76085%40googlegroups.com
>> 
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPjsHcExpo-%2BHBweDqEhszb0ZEqfeVvt7B70TzdmNVkTwhChyQ%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALVhFDtspfFOJQ0B88Wt1PKC1Q88FEC1whbCADd98dQ_2yKyzg%40mail.gmail.com.


Error while hosting on heroku

2020-03-13 Thread shree hari
here's the paste of the error: https://del.dog/ewoghelahu.txt
have already run makemigrations and migrate. It runs fine on my local 
machine. Can somebody please help me ?

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/50bebeb5-6816-41b1-8614-7ea47c12ceb6%40googlegroups.com.


Re: Error while hosting on heroku

2020-03-13 Thread Philip Mitchell
what command did you run fro migrations, you need to run heroku migrate 
commands

On Friday, March 13, 2020 at 6:15:17 PM UTC+3, shree hari wrote:
>
> here's the paste of the error: https://del.dog/ewoghelahu.txt
> have already run makemigrations and migrate. It runs fine on my local 
> machine. Can somebody please help me ?
>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4923d1c3-b240-4ede-b11a-1c9143f70fae%40googlegroups.com.


How To Send Json data To Django

2020-03-13 Thread venna venkatReddy
Hi i am learing django, so i decided to do one small project on django is 
that Exam type website.

I Need Help, Regrading How To Send Json data To Django  

when i entering the question and answers from fronend. I successfult stored 
on Local Storage in json formate, But Once click on clikc on submit buten 
its need to send to backend models, 

How to send to that json local storaga json data to bakend 

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7fd58db8-966a-402f-9428-f7623581d0a4%40googlegroups.com.


Re: Error while hosting on heroku

2020-03-13 Thread shree hari
heroku run python manage.py migrate --app appname
is the command i used.

On Friday, March 13, 2020 at 9:21:21 PM UTC+5:30, Philip Mitchell wrote:
>
> what command did you run fro migrations, you need to run heroku migrate 
> commands
>
> On Friday, March 13, 2020 at 6:15:17 PM UTC+3, shree hari wrote:
>>
>> here's the paste of the error: https://del.dog/ewoghelahu.txt
>> have already run makemigrations and migrate. It runs fine on my local 
>> machine. Can somebody please help me ?
>>
>>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c6345f03-1d23-4f4e-98cc-f311c6af0c9b%40googlegroups.com.


Re: Error while hosting on heroku

2020-03-13 Thread Jorge Gimeno
if you used --app appname, then migrations didn't run.  You can use 'heroku
run python manage.py migrate blog' (without the single quotes) to migrate
the blog app models, or 'heroku run python manage.py migrate' (again
without single quotes) to migrate all the models in the project.

-Jorge

On Fri, Mar 13, 2020 at 9:36 AM shree hari  wrote:

> heroku run python manage.py migrate --app appname
> is the command i used.
>
> On Friday, March 13, 2020 at 9:21:21 PM UTC+5:30, Philip Mitchell wrote:
>>
>> what command did you run fro migrations, you need to run heroku migrate
>> commands
>>
>> On Friday, March 13, 2020 at 6:15:17 PM UTC+3, shree hari wrote:
>>>
>>> here's the paste of the error: https://del.dog/ewoghelahu.txt
>>> have already run makemigrations and migrate. It runs fine on my local
>>> machine. Can somebody please help me ?
>>>
>>> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c6345f03-1d23-4f4e-98cc-f311c6af0c9b%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANfN%3DK_Q%2B0AdhqExfEn47gzWpyzPvN-xeQvCe3QzNa11ZoZ%2B4w%40mail.gmail.com.


Re: Error while hosting on heroku

2020-03-13 Thread shree hari
I tried that too.
Still its the same.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a3699aff-0872-4baf-8a32-97b49a75e56c%40googlegroups.com.


Re: Error while hosting on heroku

2020-03-13 Thread Jorge Gimeno
Have you checked the logs to see what the command returns?

-Jorge

On Fri, Mar 13, 2020 at 11:34 AM shree hari  wrote:

> I tried that too.
> Still its the same.
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a3699aff-0872-4baf-8a32-97b49a75e56c%40googlegroups.com
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANfN%3DK9uHT-51%3DnLtc2Bp9gij1Xp6gdQrUvoaEw0BOmrs-LNuQ%40mail.gmail.com.


Re: Error while hosting on heroku

2020-03-13 Thread mohamed khaled
Do you use postgres ???

On Mar 13 2020, at 5:15 pm, shree hari  wrote:
> here's the paste of the error: https://del.dog/ewoghelahu.txt
> have already run makemigrations and migrate. It runs fine on my local 
> machine. Can somebody please help me ?
>
>
> --
> 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 
> (mailto:django-users+unsubscr...@googlegroups.com).
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/50bebeb5-6816-41b1-8614-7ea47c12ceb6%40googlegroups.com
>  
> (https://groups.google.com/d/msgid/django-users/50bebeb5-6816-41b1-8614-7ea47c12ceb6%40googlegroups.com?utm_medium=email&utm_source=footer).

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/E440491A-6A4A-4F12-B8FF-29B32B9FA060%40getmailspring.com.


Re: Error while hosting on heroku

2020-03-13 Thread Sai Sandeep Rayanuthala
You need to type
Heroku run bash -a appname

Make sure you configured your postgres database correctly.


On Sat, 14 Mar 2020, 00:04 shree hari,  wrote:

> I tried that too.
> Still its the same.
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a3699aff-0872-4baf-8a32-97b49a75e56c%40googlegroups.com
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADBepW9OTTG_sNRrNqHkDtUhrgz-nnWw2D22pA_GU17KxSntRA%40mail.gmail.com.


Django and AWS backend MENTOR NEEDED

2020-03-13 Thread Harsh Tibrewal
Hi, I have been trying to learn django and AWS for backend of my mobile 
applications. However, all my learnig is currently based on open source 
youtube and and other forums. There are errors that I get stuck with and 
need help to resolve them. Please someone be my mentor and guide. This will 
help me learn it faster and I will be happy to work for you on your 
projects etc.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7356bf3f-fdee-4b0a-9d6d-6d80a0f1fd23%40googlegroups.com.


Re: Error while hosting on heroku

2020-03-13 Thread shree hari
Hope i have done.
Will check again though

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ad73704c-666d-4079-baf6-a4e8fc2c635f%40googlegroups.com.


Re: Error while hosting on heroku

2020-03-13 Thread shree hari
Yes

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/63ddadd8-fcfa-4608-858f-f441fe45bc54%40googlegroups.com.


Re: How To Send Json data To Django

2020-03-13 Thread Desh Deepak
Hi,

Go to the below link:
https://youtu.be/9N6a-VLBa2I


Thanks & regards
Desh Deepak
+91 7011101001

On Fri, 13 Mar 2020 at 9:26 PM, venna venkatReddy 
wrote:

> Hi i am learing django, so i decided to do one small project on django is
> that Exam type website.
>
> I Need Help, Regrading How To Send Json data To Django
>
> when i entering the question and answers from fronend. I successfult
> stored on Local Storage in json formate, But Once click on clikc on submit
> buten its need to send to backend models,
>
> How to send to that json local storaga json data to bakend
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7fd58db8-966a-402f-9428-f7623581d0a4%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJ0m4xhs8HLdMB6j_do%2BSUbcMsfHzOV_6MD6g59fAXa4necm2A%40mail.gmail.com.