<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>controller Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/controller/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/controller/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Mon, 19 Jun 2023 13:30:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How can we understand Django?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-can-we-understand-django/</link>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Tue, 08 Feb 2022 12:20:38 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[#Django #framework]]></category>
		<category><![CDATA[#opensource]]></category>
		<category><![CDATA[Application]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Language]]></category>
		<category><![CDATA[Websites]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=9698</guid>

					<description><![CDATA[<p>Hello, my loving friends, today in this article. We are going to deliver a brief description of Django. In this [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-can-we-understand-django/">How can we understand Django?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><img fetchpriority="high" decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/learn-django-by-building-a-social-network-min-copy-1024x576.png" alt="" class="wp-image-9710" width="762" height="428" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/learn-django-by-building-a-social-network-min-copy-1024x576.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/learn-django-by-building-a-social-network-min-copy-300x169.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/learn-django-by-building-a-social-network-min-copy-768x432.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/learn-django-by-building-a-social-network-min-copy-1536x864.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/learn-django-by-building-a-social-network-min-copy.png 1920w" sizes="(max-width: 762px) 100vw, 762px" /></figure></div>



<p class="wp-block-paragraph">Hello, my loving friends, today in this article. We are going to deliver a brief description of <em><strong><a href="https://www.devopsschool.com/">Django</a>.</strong></em> In this course details, we are covering the prominent part of Django for beginners. If you are a python learner or a seeker then this is the exact place for any individual those have been looking for. In this topic, we have covered all the beneficiary subjects regarding this course. I will really say that this will give you the best experiences of your doing and what you are going to do.</p>



<h2 class="wp-block-heading" id="what-is-django">What is Django?</h2>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><img decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/Django-updated--1024x512.png" alt="" class="wp-image-9700" width="782" height="391" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/Django-updated--1024x512.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/Django-updated--300x150.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/Django-updated--768x384.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/Django-updated-.png 1500w" sizes="(max-width: 782px) 100vw, 782px" /><figcaption><em><strong>Django</strong></em></figcaption></figure></div>



<p class="wp-block-paragraph">Django is a free and open-source web framework. Now you will say it is ok we don’t know about the free part and its open-source part but what is a framework? Now. The framework is a combination of certain components and packages. Definitely, if you want to build some complex application. There are certain things that you need to make. For example, if you want to make a web application. You don’t want anything from scratch. It will be time-consuming. So, you will be using a framework here. Now, Django is not the only framework that’s only available.&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>



<h2 class="wp-block-heading" id="why-use-the-django-framework">Why use the Django framework?</h2>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/Why-Django-Framework-is-Best-For-Web-Development.png" alt="" class="wp-image-9701" width="778" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/Why-Django-Framework-is-Best-For-Web-Development.png 1000w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/Why-Django-Framework-is-Best-For-Web-Development-300x135.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/Why-Django-Framework-is-Best-For-Web-Development-768x346.png 768w" sizes="(max-width: 778px) 100vw, 778px" /><figcaption><em><strong>Django framework</strong></em></figcaption></figure></div>



<p class="wp-block-paragraph">One of them is and one of the famous ones is Django. Why do we have to learn Django there? Django as we know is a web application framework that means you can build web applications. But hold on, our websites are so important definitely. If you talk about any business, they need their own online presence. In fact, most of the virtual solutions which you use nowadays are web applications. For example, if you want to buy something online, we have<em><strong> amazon,</strong></em> <em><strong>flip kart</strong></em>, and <em><strong>eBay.</strong></em> If you want to book a cab, you have an uber. We have so many applications available which are based on the web. If you want to build them, you will be using Django there. But you talk about the websites, we know that you can build websites with the help of HTML, CSS, &amp; JavaScript. So, basically, we use HTML to design the page. You can think of HTML as makeup for you. Now that you have CSS, if you want to improve your design, if you want to have that uniformity in the design that’s you will use CSS. We have Html, CSS for design. To make your websites interactive, you can use JavaScript.</p>



<h2 class="wp-block-heading" id="static-and-dynamic-website">Static and dynamic website</h2>



<p class="wp-block-paragraph">Yes, you use HTML, CSS, and JavaScript in the front hand. What about the backhand part? What if you want to make a website like a dynamic website? For example, if you go to Facebook, everyone will get influent by the feeds, you will not see the same messages which everyone is seeing. Your Facebook is different from that. If you go to amazon, you can buy stuff online, you can pay, and you can transfer the amount online. All these things need certain operations and certain processing is done on the backhand side. That’s where we need a line base that will work on the backhand but which one? But we have certain options there, we have java using, if you have heard about servlet, you can do that, PHP, Asp, and Python. But hold on, how can you do that python? &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>



<h2 class="wp-block-heading" id="how-django-can-be-used">How Django can be used?</h2>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/Top-Uses-Of-Django.jpg" alt="" class="wp-image-9703" width="732" height="406" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/Top-Uses-Of-Django.jpg 900w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/Top-Uses-Of-Django-300x167.jpg 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/Top-Uses-Of-Django-768x427.jpg 768w" sizes="auto, (max-width: 732px) 100vw, 732px" /></figure></div>



<p class="wp-block-paragraph">That’s where we have Django. So, you can use Django to build a web application in the backhand part in python. As I mentioned before, Django is not the only web framework is available but it’s quite famous there. Now, it comes to web applications one thing that is very famous in MVC. It doesn’t matter which language you learn maybe java, PHP, or asp. We have this thing common in MVC (Model view controller). Now. Basically, we do that you can separate the concerns. We have a model for data, view the Html format that you have seen on the screen and then we have a controller which will control these operations. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>



<h2 class="wp-block-heading" id="what-is-mvt-in-django">What is MVT in Django?</h2>



<p class="wp-block-paragraph">But in general, when you say <em><strong>MVC</strong></em>, it will help you to build a good web application but in Django, we have something similar to MVC not exactly MVC normally call as MVT. So, <em><strong>MVT</strong></em> is a model view template so basically in MVT we are replacing the controller with a view and replacing the view with the template. But Django basically follows MVT so, if you have worked on MVC in a different language. Don’t worry, it’s almost the same but needs some changes. But why did you choose Django? When you have some other framework is available in python. The first Reason is Django is fast, which simply means if you want to build something, you shouldn’t be spending much time in the configuration so, Django will help you to build applications faster. The second one is the number of components available.</p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/1_iK_9GN9efdrEHv4XSsMoZw.jpeg" alt="" class="wp-image-9704" width="700" height="368" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/1_iK_9GN9efdrEHv4XSsMoZw.jpeg 475w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2022/02/1_iK_9GN9efdrEHv4XSsMoZw-300x158.jpeg 300w" sizes="auto, (max-width: 700px) 100vw, 700px" /></figure></div>



<p class="wp-block-paragraph"> </p>



<p class="wp-block-paragraph">The thing apart from if you record a video, you need some components with you. You need a camera, lights, and mike, in the same way, if you want to build a web application. You need log in, database connectivity, all these things come bundled in Django. Does advantages and drawbacks as well, advantages you have everything with you and drawback, you have everything on you. The third one is security if you are building an application where you use it. Definitely, there will be sending the data and you want to secure them &amp; the users. So, Django will provide you with that security. The fourth one is scalability, what if in future sites scales, you want to have multiple users, &amp; more features and it will give you the options as well. That’s the reason, you should be learning Django. It is interesting so if you have done your python course. This is the very true place and accurate learning path for you.</p>



<h4 class="wp-block-heading" id="related-video">Related video:</h4>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy"  id="_ytid_31580"  width="640" height="360"  data-origwidth="640" data-origheight="360" src="https://www.youtube.com/embed/1G4kwkx94Ho?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;" class="__youtube_prefs__  epyt-is-override  no-lazyload" title="YouTube player"  allow="fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen data-no-lazy="1" data-skipgform_ajax_framebjll=""></iframe>
</div></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-can-we-understand-django/">How can we understand Django?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Target class [PostController] does not exist.</title>
		<link>https://www.scmgalaxy.com/tutorials/target-class-postcontroller-does-not-exist/</link>
					<comments>https://www.scmgalaxy.com/tutorials/target-class-postcontroller-does-not-exist/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Fri, 21 May 2021 12:02:07 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[crud]]></category>
		<category><![CDATA[crud operation in laravel]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[Php]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6315</guid>

					<description><![CDATA[<p>Whenever you got this types of error go to your Route/web.php file and checkout your Controller class is mention there [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/target-class-postcontroller-does-not-exist/">Target class [PostController] does not exist.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/2732/1*zYXhZ0W-6FNZD4gN90uQIQ.png" alt=""/></figure>



<p class="wp-block-paragraph" id="9f4a">Whenever you got this types of error go to your Route/web.php file and checkout your Controller class is mention there or not.</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*dknFRNBrkf7i3jNGw5aJPQ.png" alt=""/></figure>



<p class="wp-block-paragraph" id="c977">Next Go to PostController file and copy your controller class</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*shUfc-bV_sUa7VQhtWqBhQ.png" alt=""/></figure>



<p class="wp-block-paragraph" id="8e2f">Now go to Routes/web.php and class this class</p>



<pre class="wp-block-preformatted">use App\Http\Controllers\PostController;</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*T3oto9BjfSeFrEXyRRLPbw.png" alt=""/></figure>



<pre class="wp-block-preformatted">php artisan serve</pre>



<p class="wp-block-paragraph" id="dd66">Now its working properly</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1276/1*N4nSNuQMwFyD8PUAxWB0tw.png" alt=""/></figure>



<p class="wp-block-paragraph" id="57db">Thanks.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/target-class-postcontroller-does-not-exist/">Target class [PostController] does not exist.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/target-class-postcontroller-does-not-exist/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Class ‘App\Http\Controllers\Student’ not found</title>
		<link>https://www.scmgalaxy.com/tutorials/class-apphttpcontrollersstudent-not-found/</link>
					<comments>https://www.scmgalaxy.com/tutorials/class-apphttpcontrollersstudent-not-found/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 15 Apr 2021 12:42:21 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[Php]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=5885</guid>

					<description><![CDATA[<p>In this tutorial I’m going to describe how to solve “Class ‘App\Http\Controllers\Student’ not found” if you got this types of [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/class-apphttpcontrollersstudent-not-found/">Class ‘App\Http\Controllers\Student’ not found</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph" id="a1b5">In this tutorial I’m going to describe how to solve “Class ‘App\Http\Controllers\Student’ not found” if you got this types of error please follow some easy steps</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1347/1*JtUg2NMoE1IqfD87GBNkhA.png" alt=""/></figure>



<p class="wp-block-paragraph" id="cf9b">1step this types of error is showing when you’re not using class name whatever you have define below code as like :-</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>public function index()<br>{<br>$students = Student::all();</p><p>return view(‘students.dashboard’,compact(‘student’));<br>}</p></blockquote>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/692/1*LtdkwGO_SS-ch_rHQB24ww.png" alt=""/></figure>



<p class="wp-block-paragraph" id="b958"><strong>2nd you have to add your model name above of the StudenController class name</strong></p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/255/1*QV2vjzWt9ZYu8nVaU2E15w.png" alt=""/></figure>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>3rd step got your Controller :-&nbsp;<strong>StudentController.php</strong></p></blockquote>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/382/1*fRHmnINU0OyomYMY4nBcDQ.png" alt=""/></figure>



<p class="wp-block-paragraph" id="4e54">And add model name in the Student Controller class here as like this</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>use App\Student;</p></blockquote>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="448" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/controller-not-found-1024x448.png" alt="" class="wp-image-5887" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/controller-not-found-1024x448.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/controller-not-found-300x131.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/controller-not-found-768x336.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/controller-not-found.png 1051w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph" id="bd75">Then refresh your browser and you got solve your errors.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p><a href="http://127.0.0.1:8000/">http://127.0.0.1:8000/</a></p></blockquote>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*_OT7R2o94CmPj2w6jldcfQ.png" alt=""/></figure>



<p class="wp-block-paragraph" id="dac5">Thanks hopefully it will helpful for you. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f44d.png" alt="👍" class="wp-smiley" style="height: 1em; max-height: 1em;" /><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f44d.png" alt="👍" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/class-apphttpcontrollersstudent-not-found/">Class ‘App\Http\Controllers\Student’ not found</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/class-apphttpcontrollersstudent-not-found/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
